install npm package globally

Shell
#how to install any specific package in nodejs Application
# Syntex
npm install packagename

# example:
npm install express
npm i express

#if you install globally then type 
npm install express -gnpm install package-name -g
Source

Also in Shell: