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-updatesThen to update package.json to the latest versions:
ncu -u
If you want to update only to the latest minor version:
ncu -u -t minorThen you can install the updates:
npm install