Skip to content

Instantly share code, notes, and snippets.

@MarcelRittershaus
Last active December 2, 2021 11:53
Show Gist options
  • Select an option

  • Save MarcelRittershaus/42f8dfb6ffd5cbeb7afb5dc31c04281b to your computer and use it in GitHub Desktop.

Select an option

Save MarcelRittershaus/42f8dfb6ffd5cbeb7afb5dc31c04281b to your computer and use it in GitHub Desktop.
NodeJS | npm shorthands

NPM

shorthand

npm install 
npm i

npm install --save 
npm i -S

npm install —dev 
npm i -D

npm install —global
npm i -g

npm --version
npm -v 

npm --help
npm -h | npm -? | npm H 
npm  --usage


# loglevel

npm --silent
npm -s 

npm --quiet
npm -q

npm --loglevel info
npm -d: 

npm --verbose:
npm -dd
npm -ddd

* -g: --global

* -C: --prefix

* -l: --long

* -m: --message

* -p, --porcelain: --parseable

* -reg: --registry

* -f: --force

* -desc: --description

## save

npm -S: --save

npm -P: --save-prod

npm -D: --save-dev

npm -O: --save-optional

npm -B: --save-bundle

npm -E: --save-exact

npm -y: --yes

npm -n: --yes false

npm ll and la commands: ls --long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment