What does the --save-dev option do when running npm install?

coderguy asked this question 1 year, 5 months ago
coderguy on Dec 13, 2021

I've seen the npm install --save-dev command used in several different places, but can't figure out what the --save-dev option does.

2 suggested answers
nick on Dec 22, 2021

It adds the NPM package to the "devDependencies" list in your package.json file.

These are the packages your application needs when it is running in the development environment.

0 replies
suparman21 on Dec 22, 2021

It adds the package to the "devDependencies" for your application.

0 replies