A
A
Alexey Vechkanov2016-03-29 23:42:49
npm
Alexey Vechkanov, 2016-03-29 23:42:49

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

3 answer(s)
I
iboozy, 2016-03-30
@iboozy

You just need to use it in production:
then packages from devDependencieswill be ignored

S
sergey, 2016-03-29
@zorro76

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.

A
Alexey Vechkanov, 2016-03-30
@SmiteVils

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 question

Ask a Question

731 491 924 answers to any question