I saw some tutorial where the command was:
npm install --save
What does the --save
option mean?
Not able to find the answer on Google.
转载于:https://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install
I saw some tutorial where the command was:
npm install --save
What does the --save
option mean?
Not able to find the answer on Google.
转载于:https://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install
It won't do anything if you don't have a package.json
file. Start by running npm init
to create one. Then calls to npm install --save
or npm install --save-dev
or npm install --save-optional
will update the package.json
to list your dependencies.