install npm globally in windows code example
Example 1: install npm globally
npm install npm@latest -g
Example 2: install npm package globally
npm install package-name -g
npm install npm@latest -g
npm install package-name -g