download npm packages directly code example Example 1: download npm package $ npm install download Example 2: how to install npm packages npm i <package>