Skip to content

Instantly share code, notes, and snippets.

@gerardreches
Last active November 30, 2016 15:50
Show Gist options
  • Save gerardreches/335dee9e3b722fbf915b848672646ce5 to your computer and use it in GitHub Desktop.
Save gerardreches/335dee9e3b722fbf915b848672646ce5 to your computer and use it in GitHub Desktop.
npm basic console commands

Installing a package

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

Remove unused packages

npm prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment