Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
After executing npm install
the sill idealTree buildDeps
step takes a long time (minutes) causing npm@7 working with workspaces slower than npm@6 installing projects separately.
It seems that is fetching packages sequentially instead using parallelization.
Vídeo with the demo:
CleanShot.2021-05-18.at.16.07.23.mp4
Expected Behavior
npm install
on npm@7 with workspaces takes less time than npm@6 installing manually each workspace.
Steps To Reproduce
- In a environment with a lot of dependencies and workspaces.
- With this config:
"workspaces": [
"domain",
"icons",
"literals"
],
- Run
npm install
- See that the step
buildDeps
take longer than expected.
Some considerations:
- We're using some npm private packages on our package.json.
- Workspaces are dependencies of root project as well.
More info:
On Travis, builds using npm@6 and installing workspaces manually takes 90s.
Using npm@7 it takes 170s using a single npm install.
Environment
- OS: macOS 11.3.1
- Node: 16.1.0
- npm: 7.17.0