DEV Community

paul-coder-22
paul-coder-22

Posted on

Answer: How to update each dependency in package.json to the latest version?

Looks like npm-check-updates is the only way to make this happen now.

npm i -g npm-check-updates
ncu -u
npm install

On npm <3.11:

Simply change every dependency's version to *, then run npm update --save. (Note: broken in recent (3.11) versions of npm).

Before:

  "dependencies": {

Top comments (0)