npm install latest local package code example Example 1: install node_modules npm install Example 2: how to install npm packages npm i <package>