Answered
I've seen the npm install --save
command used in several different places, but can't figure out what the --save
option does.
The --save
or -S
flag adds the package to the "dependencies"
list in your package.json
file.
The "dependencies"
list contains all the packages needed to run your application.
It tells NPM to install to the "dependencies"
list in the package.json
file.
As of NPM version 5
, packages are installed to "dependencies"
by default. Therefore, the --save
flag is no longer needed. There are still other save options that are listed in the NPM documentation.