Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: