Updating all npm dependencies to the latest version
To update all the packages, install the npm-check-updates
package globally:
npm i -g npm-check-updates
Then to update package.json to the latest versions:
ncu -u
If you want to update only to the latest minor version:
ncu -u -t minor
Then you can install the updates:
npm install