- upgrade all packages
- use local npm packages
- install latest npm version
- clear npm cache
- link a local package source
- install package from github repo commit id
- download npm package tarball
sudo npm install -g npm-check-updates
ncu -u
npm install
npm config set prefix '~/.npm-global'
echo 'export PATH=$PATH:~/.npm-global/bin' >> ~/.bashrc
source ~/.bashrc
clean npm cache npm cache clean -f
cd ./my-project
npm link path-to-local-module
npm install https://github.com/user/project/tarball/commitid --save-dev
wget $(npm view packagename dist.tarball)