List all globally installed npm packages
npm list -g --depth=0
View outdated global packages only
npm outdated -g --depth=0
Update global packages
npm update -g
Install a global package
npm install *packagename* -g
List all globally installed npm packages
npm list -g --depth=0
View outdated global packages only
npm outdated -g --depth=0
Update global packages
npm update -g
Install a global package
npm install *packagename* -g