Skip to content

Node Package Manager - npm

Terminal window
# Install dependencies
npm install
# Run tests
npm test
# Update dependencies
npm update
# Update global (-g) packages
npm update -g
# List install packages
npm ls
# Uninstall a package
npm uninstall package_name
# NPM proxy setting
# per https://medium.com/@ogbemudiatimothy/using-npm-install-behind-a-corporate-proxy-server-db150c128899
npm config set proxy http://1.1.1.1:3128
npm config set https-proxy http://1.1.1.1:3128
# Remove proxy
npm config rm proxy
npm config rm https-proxy