npm install to latest version of dependencies code example
Example: how to update version of dependencies reactjs
$ npm install -g npm-check-updates
$ ncu -u
$ npm install
$ npm install -g npm-check-updates
$ ncu -u
$ npm install