globall install code example Example 1: install node_modules npm install Example 2: how to install npm packages globally npm i -g <package>