# nodejs
# nvm
# install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
nvm list
nvm install v8.9.0
nvm use 10.0.0
NVM for Windows (opens new window)
# npm
# config
npm config ls
npm config set registry "https://registry.npmjs.com/"
echo "" > $(npm config get userconfig) // reset config
# github install
npm install git://github.com/user-name/package-name.git#v0.1.0
# npm audit
npm outdated
npm doctor
npm audit
# search
npm search express
npm view express
# update package.json version
npm version 1.2.3
# cache
npm ls
npm ls --global
# npm proxy
# add to your shell profile:
export NODE_EXTRA_CA_CERTS="absolute_path_to_your_certificates.pem"
# npm misc
npm ls --depth=0
npm prune