質問

I've been using angular yeoman for a while now and seen that these packages get updated quite frequently:

For example these ones:

npm install -g generator-webapp
npm install -g generator-angular

When I want to update them I just run the same commands again or run npm update [-g] [<name> [<name> ...]]

Is there a way to just tell npm to update them all to the latest version if I don't have a package.json

役に立ちましたか?

解決

You can just run npm update -g, which will update ALL of your globally installed packages.

It also doesnt have anythign to do with the package.json, since that is for the LOCALLY defined npm-Packages (in your projects scope).

他のヒント

You can also use yo to update your generators:

yo - loading= update your generators">

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top