-S
is shorthand for --save
, and it adds the package you're installing to the dependencies in your package.json
file (which can be created with npm init
). However, --save
or -S
is totally unnecessary if you're using npm 5 or above since it's done by default. blog.npmjs.org/post/161081169345/v500