> As far as I know, these 100+ dev dependencies are installed by default.
devDependencies should only be installed if you're developing the React library itself. They won't be installed if you just depend on React.
devDependencies should only be installed if you're developing the React library itself. They won't be installed if you just depend on React.
Please correct me if I am wrong, here's my understanding.
"npm install installs both dependencies and dev-dependencies unless NODE_ENV is set to production."
So, these ~100 [direct] dev dependencies are installed by anyone who does `npm install react`, right?
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.
When you do `npm install react` the direct dependency is `react`. All of react's dependencies are indirect.