Stop using npm install --save/--save-dev

Saw many tutorials using npm install --save xxx etc etc. Actually there's a better way.

Substitute i for install, -S for --save, -D for --save-dev.

Examples

npm i xxx -S

is equivalent to

npm install xxx --save

npm i xxx -D

is equivalent to

npm install xxx --save-dev

Save some keystrokes, save the probability of making a typo.

Stop using npm install --save/--save-dev
Share this