Update all npm packages in package.json to the latest version

Updated on     Kisan Patel

Problem:
How do I update each dependency in package.json to the latest version?
How to update all npm packages in your project at once
How to update all the Node dependencies to their latest version

Solution:

npm-check-updates is a utility that automatically adjusts a package.json with the latest version of all dependencies.

$ npm install -g npm-check-updates

Run with -u to upgrade your package.json

$ ncu -u

Then do a clean install

$ npm install 

Reference: https://www.npmjs.org/package/npm-check-updates


AngularJS JavaScript

Leave a Reply