Home > Back-end >  -D in npm install
-D in npm install

Time:05-23

While installing react-router-dom, I came across a term -D in it,

npm i -D react-router-dom@latest

When I surfed online I came to know that it is -d: --loglevel info.

I need to know what exactly does this -d do and what happens if I remove this -D ?

CodePudding user response:

Straight from the documentation:

  • -D, --save-dev: Package will appear in your devDependencies.

You can remove it if you want and the package will show up in dependencies and not devDependencies

  • Related