Languages

npm - what does -D flag mean in "npm install -D <package_name>"?

0 points
Asked by:
Ela-Davey
663

I wanted to install sass and I'm not sure what does the-D flag mean in the command below:

npm install -D sass
1 answer
0 points
Answered by:
Ela-Davey
663

The -D flag is a shorthand for --save-dev that saves the package as a dev-dependency.

Note:

Dev-dependencies are packages in the package.json file that you need only for project development purposes.

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join