how install the folder as global package 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>