Hacker News new | ask | show | jobs
by sponnath 159 days ago
It does not recursively install dev-dependencies.
1 comments

> It does not recursively install dev-dependencies.

So, these ~100 [direct] dev dependencies are installed by anyone who does `npm install react`, right?

No. They’re only installed if you git clone react and npm install inside your clone.

They are only installed for the topmost package (the one you are working on), npm does not recurse through all your dependencies and install their devDependencies.

> ~100 [direct]

When you do `npm install react` the direct dependency is `react`. All of react's dependencies are indirect.