to update package.json The plug-in version of the file

Time:2020-10-18

Sometimes when we are developing projects, some are in the package.json The plug-in version in the file needs to be updated. A very convenient plug-in is NPM check updates

1. Installation:

npm install -g npm-check-updates

2. Use:

inspect package.json The latest version of dependencies in:

ncu

Update dependencies to the new version:

ncu -u

Update all to the latest version:

ncu -a

Original reference link

Recommended Today

On the theoretical basis of SRE

What is SRE? When I first got into contact with SRE, many people thought that it was a post with full stack capability in Google and could solve many problems independently. After in-depth exploration, it is found that SRE can solve many problems, but there are too many problems. It is difficult for a post […]