Installing a package using npm Globally code example
Example 1: npm install package globally
#Syntex
npm install packagename -g
#example
npm install express -g
Example 2: how to install npm packages
npm i <package>
#Syntex
npm install packagename -g
#example
npm install express -g
npm i <package>