npm install package-name
OR
npm i package-name
add the --no-bin-links
option if you are in a Windows machine:
npm install package-name --no-bin-links
Install the package and save it as a required dependency in your package.json:
npm install package-name --save
npm prune