npm local package code example
Example: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save
npm install package-name
To save as a dependency:
npm install package-name --save