简体   繁体   中英

If I do an NPM install with “npm install --save-dev” how can I check for updates

If I install a number of different packages from what I understand using --save-dev will create a local package.json file listing these.

Is there some way using npm (or Webstorm IDE) that I can check these packages to see if any of them have been updated and then download later versions?

all --save-dev will do is augment your existing package.json file with a key of

"devDependencies": {

}

This will keep the dependencies at the project level, instead of global requirement, when you npm install.

If you want to update your dependency list you can simply use 'npm update', if you want to update a specfic package use 'npm update' with the module name. If you wish to see which packages have an update use 'npm outdated'

https://www.npmjs.org/doc/cli/npm-update.html
https://www.npmjs.org/doc/cli/npm-outdated.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM