What does the –save-dev flag do when installing an npm package?

Node.js Developer Easy

Node.js Developer — Easy

What does the –save-dev flag do when installing an npm package?

Key points

  • --save-dev adds the package to devDependencies
  • DevDependencies are only needed for development
  • Helps separate development dependencies from production dependencies

Ready to go further?

Related questions