Yarn install never ends with (complex ?) workspaces

Do you want to request a feature or report a bug?

What is the current behavior?
When launching yarn install in workspace directory it never ends(waited all night). But if I rollback to v1.3.2 it completes in 42s.

If the current behavior is a bug, please provide the steps to reproduce.
The project is on a private repo so I can’t provide a link.

What is the expected behavior?
Should end within minutes.

Please mention your node.js, yarn and operating system version.
node: v9.11.1
Yarn: 1.6.0, 1.5.1, 1.3.2
Os: Ubuntu v9.11.1 or windows 10

I’m not sure if it could be related but the packages are referenced as "package-a": "git+ssh://git@bitbucket.org/companyname/package-a.git#0.1.1-beta.81",

Author: Fantashit

2 thoughts on “Yarn install never ends with (complex ?) workspaces

  1. I have been having a similar issue where yarn install never completes. I have spent a lot of time trying to figure out what I did wrong and could be causing this as it just seemed to hang indefinitely without any messaging in the console. I tried running it over night and I got “FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory”.

    We are not using any resolutions or any packages straight from github. We use our own NPM server and using “latest” version for all our internal workspace packages.

    I was able to get it to run when I took all but 11 packages out of the workspace project. But as soon as I added more I ran into issues.

  2. Trying to migrate to workspaces – @mschipperheyn --ignore-scripts did the trick, but after some digging I found that in one of my workspaces I had a preinstall script that would cd into a relative path and run yarn install, this was the cause of the hanging, but Yarn was swallowing any errors that might have ocurred in that script, this could be improved.

Comments are closed.