Common NPM Commands
· β 2 min read
** By default, a command operates on the current directory environment. Adding the -g flag makes it apply globally instead.**
Upgrade npm 1 npm install npm -g Show the current version 1 npm -v Show the npm registry configuration 1 npm config get registry Change the npm registry 1 2 npm config set registry http://registry.