install package globally code example
Example 1: npm install package globally
#Syntex
npm install packagename -g
#example
npm install express -g
Example 2: install npm package globally
npm install package-name -g
Example 3: how to install npm packages globally
npm i -g <package>