- Published on
What is the npm command '--save-dev'?
- Authors

- Name
- hwahyeon
--save-dev is an option in npm (Node Package Manager) used when installing packages that are only needed in the development environment. When this option is used, the package is added to the devDependencies section of the package.json file. It typically includes tools that are necessary during development but not required in the actual deployment. Examples include testing libraries, code linters, and build tools.
Example Usage
npm install eslint --save-dev
When you run this command, eslint is added to the devDependencies section and installed in node_modules.