npm update all packages to wanted code example
Example 1: how to update version of dependencies reactjs
$ npm install -g npm-check-updates
$ ncu -u
$ npm install
Example 2: how to update all node libraries
npm install -g npm-check-updates
$ npm install -g npm-check-updates
$ ncu -u
$ npm install
npm install -g npm-check-updates