NPM Installation
npm install -g npm
Checking your version of npm and Node.js
node -v
npm -v
List globally installed packages
npm list -g --depth=0
Uninstall global package
npm -g uninstall <name>
Upgrade npm
on Windows
npm-windows-upgrade
Update global packages
To see which packages need updating, use:
npm outdated -g --depth=0
To update global packages individually you can use:
npm update -g <package> <package> <package>
list available scripts to run
npm run
Update npm
npm install -g npm@latest
// using windows? Then use
npm-windows-upgrade
Installed version
npm list // for local packages
Top comments (0)