What does the -S
flag for npm mean? I see it referenced here but https://docs.npmjs.com/cli/install does not cover what the -S
is.
npm i -S @types/google-apps-script
What does the -S
flag for npm mean? I see it referenced here but https://docs.npmjs.com/cli/install does not cover what the -S
is.
npm i -S @types/google-apps-script
-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.
The 'S' option is the Save option in npm. It adds the npm package to your dependencies for your project. It's the same as --save
.
-s
flag (lowercase s) by flawed search engine results, lowercase s is shortcur for--silent
.