Kriv
0
Q:

update npm package

npm install -g npm@latest
5
npm install -g npm-check-updates
ncu -u
npm update
npm install
3
npm install -g npm-check-updates
/after install run following:
ncu -u

//Then this:
npm update
2
npm update  //update all local packages
6
npm i -g npm@latest
2
npm update -g <package_name>
3
npm update -g
1
Use npm|yarn outdated to see which modules have newer versions
Use npm update|yarn upgrade (without a package name) to update all modules
Include --save-dev|--dev if you want to save the newer version numbers to your package.json. (NOTE: as of npm v5.0 this is only necessary for devDependencies).
Use npm install package@major-version to update to major version
3

New to Communities?

Join the community