meteor > error: no such package: 'accounts-url

2019-05-23 05:44发布

Running latest meteor 0.6.5 i got this error:

Ok, everything's ready. Here comes Meteor!

=> Errors while scanning packages:

While building package accounts-ui-bootstrap-dropdown: error: no such package: 'accounts-urls'

Any help appreciated, thnx

3条回答
再贱就再见
2楼-- · 2019-05-23 06:01

What command did you run before you got the error? If you ran meteor add accounts-ui-bootstrap-dropdown, that won't work.

accounts-ui-bootstrap-dropdown is not part of the official packages repository, but it is part of Atmosphere.

You have to install the unofficial package manager, Meteorite based on the instructions on the webpage, then you can run mrt add accounts-ui-bootstrap-dropdown

EDIT: There is a similar question that is more clear, and you may want to follow this question or confirm that your commands and errors are the same

查看更多
【Aperson】
3楼-- · 2019-05-23 06:06

it's because your on 0.6.5 and the package hasn't been updated yet to work with that, there was a lot of api changes in the way you format your package.js file and most packages on meteorite haven't been updated to adhere to the new style yet so they all break.

Recommendation:

1 Use this command to downgrade and wait a few weeks until atmosphere packages get corrected

"The way to downgrade is:

$ meteor update --release 0.6.4.1

... but that won't actually undo the other change that updating your app to 0.6.5 did. So you'll also want to edit your ".meteor/packages" file and remove the line "standard-app-packages". "

2 Send a PR to the package creator with an updated package.js file adhering to the api rules listed here

https://github.com/meteor/meteor/blob/devel/History.md

File that needs to be updated:

https://github.com/erobit/meteor-accounts-ui-bootstrap-dropdown/blob/master/package.js

查看更多
乱世女痞
4楼-- · 2019-05-23 06:09

The package has been updated on atmosphere to support the latest meteor release v0.6.5. If you are running latest meteor, you should be able to simply remove and re-add the package.

mrt remove accounts-ui-bootstrap-dropdown

mrt add accounts-ui-bootstrap-dropdown

Note: Refer to the readme on the github project page at the url below, as I have updated the installation instructions with more details.

https://github.com/erobit/meteor-accounts-ui-bootstrap-dropdown/blob/master/README.md

查看更多
登录 后发表回答