[Bug?]: yarn install link step very slow
See original GitHub issueSelf-service
- I’d be willing to implement a fix
Describe the bug
It still takes a long time to use yarn to reinstall dependencies without any changes. I’m not sure what happened. We have 30 modules and nested workspaces.
Below is the output
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 480ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 2s 765ms
➤ YN0000: ┌ Link step
➤ YN0062: │ fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2 The platform win32 is incompatible with this module, link skipped.
➤ YN0062: │ fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=1cc4b2 The platform win32 is incompatible with this module, link skipped.
➤ YN0000: └ Completed in 38s 348ms
➤ YN0000: Done with warnings in 41s 807ms
To reproduce
Unfortunately, only the production environment has this problem. I have not encountered this problem in my two personal projects. If there is any additional information I can provide, please let me know.
Maybe yarn has a debug mode switch or detailed log?
Environment
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
Binaries:
Node: 16.9.1 - ~\AppData\Local\Temp\xfs-48c94d8d\node.CMD
Yarn: 3.0.1 - ~\AppData\Local\Temp\xfs-48c94d8d\yarn.CMD
npm: 7.21.1 - C:\Program Files\nodejs\npm.CMD
npmPackages:
jest: ^27.2.1 => 27.2.1
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Linking dependencies is taking a long time #1496 - GitHub
yarn sometimes tries to link around 600.000 files in small projects. This can take more than 30 minutes. I currently try it with...
Read more >Three simple tricks to speed up yarn install - Developer way
Below are three simple tricks that can help you shave off a minute or two, or sometimes even reduce your yarn install time...
Read more >Yarn/npm linking slow across volumes - DreamOnward
The problem is when you use your packager on this volume. Step 2 of yarn fetches packages to yarn cache dir : /Users/name/Library/Caches/Yarn/v6 ......
Read more >What does "Linking Dependencies" during npm / yarn install ...
You should notice that Step 3: Linking is taking more time than Step 1: Resolution and Step 2: Fetching where the actual download...
Read more >`yarn install` | Yarn - Package Manager
Details. This command sets up your project if needed. The installation is split into four different steps that each have their own characteristics:....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Checking that the checksum of all the packages you use matches the lockfile to protect against a corrupted/modified cache
Hi! 👋
This issue looks stale, and doesn’t feature the
reproduciblelabel - which implies that you didn’t provide a working reproduction using Sherlock. As a result, it’ll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we’re a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃
If you absolutely cannot reproduce a bug on Sherlock (for example because it’s a Windows-only issue), a maintainer will have to manually add the
upholdedlabel. Thanks for helping us triaging our repository! 🌟