Update all dependencies at once in NPM
To update all dependencies in your project using NPM, you need to use the module “npm-check-updates” (NCU) globally and run its command:
npm install -g npm-check-updates
ncu -u
npm install
- npm install -g npm-check-updates: This will install the “npm-check-updates” module globally in your system. So you will be able to run the command “ncu” directly in your terminal.
- ncu -u: This will update your package.json
- npm install: This will finally update all your modules inside the “node_modules” folder.
If you face any problem with this, kindly do let me know.