install all pacKAGE IN NODE JS code example Example 1: how to install npm packages globally npm i -g <package> Example 2: how to install npm packages npm i <package>