Updating all npm dependencies to the latest version
node.js

Updating all npm dependencies to the latest version

Marcell Simon
Marcell Simon

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