Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking dependencies is taking a long time #7408

Closed
alepee opened this issue Jul 16, 2019 · 6 comments
Closed

Linking dependencies is taking a long time #7408

alepee opened this issue Jul 16, 2019 · 6 comments

Comments

@alepee
Copy link

alepee commented Jul 16, 2019

Ref: #1496

Even with recent yarn version, and on various system, yarn is taking a very long time to link dependencies. This performance issue has been reported, but the issue has been closed by maintainer and not reopen since then.

This is a serious issue for lot of users, and should be at least answered.

@wilo087
Copy link

wilo087 commented Aug 12, 2019

Any solution about this issue?

@alepee
Copy link
Author

alepee commented Aug 14, 2019

As far as I know, no 😞 We observed within a docker environment (node:10-alpine on docker4mac, docker-machine/xhyve and docker on linux host).

@ACoolmanBigHealth
Copy link

Yes I would also like to at least the knobs I can turn to speed this up

@thiefjim
Copy link

thiefjim commented Sep 26, 2019

yarn v1.17.3
node v10.16.3
npm 6.9.0

Windows

I have tried to put my App project folder location at the same disk section as yarn cache dir.
yarn cache dir -> C:\Users<YOUR USERNAME>\AppData\Local\Yarn\Cache\v4

The result:
old location -> D:\myApp Done in 747.17s.
new location -> C:\myApp Done in 488.97s.

C and D are the same physical disk.

Mac

However Mac is faster than Windows Done in 121.37s

I think the bottleneck is the disk read/write speed?

@alepee
Copy link
Author

alepee commented Nov 29, 2019

Switching back from yarn to npm divided our install time by 3 within an Linux/Docker environment.

@alepee alepee closed this as completed Jan 4, 2020
@Cally99
Copy link

Cally99 commented Feb 17, 2022

I'm switching back too. Yarn has far too many bugs and stupid things that takes so long to workout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants