NPM CheatSheet
?
R
BashList of useful NPM commands
1# View dependencies of a package before installing
2npm info "eslint-config-airbnb@latest" peerDependencies
3
4# View all packages installed globally
5npm -g ls --depth=0
6
7# Rectify the installation folder for global scripts
8npm config set prefix /usr/local
9
10
11Created on 5/2/2018