Hacker News new | ask | show | jobs
by ashishb 166 days ago
> It does not recursively install dev-dependencies.

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

2 comments

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.