EN
Node.js - what is --save option in npm install command?
1
answers
0
points
What is the --save
option in npm install command?
npm install --save
I was using just npm install
all the time but recently I saw this on the internet and I don't know what it stands for.
1 answer
0
points
In older versions of npm (before npm 5.0.0) packages were installed under node_modules
by default. You had to install dependencies first and then add them into dependencies section of your package.json
.
Back then, the --save
option was used to include the package into dependencies section of your package.json
automatically.
Note:
Additionally,--save
was used to save the package under devDependencies (--save-dev
) or optionalDependencies (--save-optional
).
0 comments
Add comment