NPM Cheat Sheet

To check for outdated and update

npm outdated
npm update
npm install

To Update all packages

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

List globally installed packages.

npm list -g –depth=0

Check packages not used

npm install -g depcheck
depcheck

npm uninstall

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image