dribbblefacebookgithubgooglepluslinkedinrsstwitter

Quick Tip: npm CLI Shorthands

Posted on by Devin Clark

If you're like me, you spend a lot of time daily using npm, the official node package manager. Typing npm install whatever-package --save or npm install whatever-package --save-dev is very tedious.

I recently discovered there are aliases for --save and --save-dev. --save can be replaced with -S and --save-dev with -D.

There are a few others in the source link below but I felt those two are the most commonly used. I hope this speeds up your npm install-ing like it did mine!

Also, you can run npm i whatever-package instead of npm install whatever-package.

Source