npm install download code example Example 1: install latest npm npm install npm@latest -g Example 2: download npm package $ npm install download