how to globally add npm package in windows code example Example 1: how to install npm packages globally npm i -g <package> Example 2: how to install npm packages npm i <package>