93
npm i -g npm-check-updates ncu -u npm install
"dependencies": { "express": "*", "mongodb": "*", "underscore": "*", "rjs": "*", "jade": "*", "async": "*" }
"dependencies": { "express": "~3.2.0", "mongodb": "~1.2.14", "underscore": "~1.4.4", "rjs": "~2.10.0", "jade": "~0.29.0", "async": "~0.2.7" }
86
$ npm install -g npm-check-updates $ ncu -u $ npm install
$ npx npm-check-updates -u $ npm install
71
npm outdated npm update git commit package-lock.json
npm install -g npm-check-updates npm-check-updates npm shrinkwrap git commit package-lock.json
# `outdated` is part of newer npm versions (2+) $ npm outdated # If you agree, update. $ npm update # OR # Install and use the `npm-check-updates` package. $ npm install -g npm-check-updates # Then check your project $ npm-check-updates # If you agree, update package.json. $ npm-check-updates -u
$ rm -rf node_modules $ npm install
$ rm npm-shrinkwrap.json $ npm shrinkwrap
66
npm install {package-name}@* {save flags?}
npm install express@* --save
npm install --save package-nave@* other-package@* whatever-thing@*