How to Update Each Dependency in Package.json to the Latest Version

  • Home /
  • Blog Posts /
  • How to update each dependency in package.json to the latest version

You have 2 options:

npx npm-check-updates -u
npm install

Option 2 – Older way (Using npm globally)

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