Home » Just Blogging » How to update npm packages to latest version

Here is way to update node/ angular/ react project’s npm packages to latest version automatically using npm command

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

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

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

A slightly less intrusive (avoids a global install) way of doing this if you have a modern version of npm is:

npx npm-check-updates -u
npm install

Array ( [0] => Just Blogging )

Leave a comment

0 Comments.

Leave a Reply

You must be logged in to post a comment.