Answer the question
In order to leave comments, you need to log in
What's the difference between installing packages from devDependencies and dependencies?
I am using the NPM package manager . All packages are described in the package.json file On a Mac , executing the "npm i" command installs all packages from both devDependencies and dependencies . In windows , packages are installed only from dependencies - what's the difference?
Answer the question
In order to leave comments, you need to log in
You just need to use it in production:
then packages from devDependencies
will be ignored
npm install //this is on production
Installs only the dependencies listed in the "dependencies" subsection (for production) in package.json, it does not install dependencies from the "devDependencies" section.
I tried it with a friend on Windows. All packages are installed from both devDependencies and dependencies . For me, their devDependencies are not put in any.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question