-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Yarn Dependency Issue on Windows - Takes Forever #5144
Comments
@thecjharries, thanks for raising this. Still 207.14s for As a general suggestion to see if Windows Defender is interfering with install, open Task Manager during install and see if Windows Defender or Indexing Service is getting high CPU usage. Raising attention to @BYK regarding performance. |
I was able to solve my issue by moving to a better operating system. However, I doubt everyone will have that luxury. Thanks for the response, @bestander! So Yarn has to rebuild |
In the worst case scenario, yes.
I suppose when Yarn checks that all other files in node_modules are not modified it does a bunch of IO reads that Windows Defender might find suspicious and passes it through an antivirus. Good that you found a solution |
I'm actually using yarn in the ubuntu environment on windows, and I'd like to see this fixed, as I'm planning to use this setup for the foreseeable future. |
Is there any update on this? I'm using Linux Subsystem on Windows and it takes about 5-10 mins to remove and then add a dependency. |
Same here, around 5 minutes to add a package. Linux Subsystem for Windows 10
Using the |
@iSkilled can you share your package.json and yarn.lock files? |
Sure. |
To be clear... this issue affects WSL/Bash, correct? Because that's what I'm experiencing now. Not sure if cmd.exe performs any better. |
Any update on this? |
Im stucked with this problem too. Trying to make yarn install and sometimes getting My yarn version is 1.13.0 |
Add these exclusions to your defender in control panel. Add these two folders. The Node.js folder is located at: c:\Program Files\nodejs and lastly the yarn global folder is at: c:\Users\YourUserName\AppData\Local\Yarn |
Do you want to request a feature or report a bug?
This is a bug, I think. #990 and #3234 seem to suggest I should make a new issue.
There's a pretty good chance I've missed some simple fixes. I'm hoping that's the case.
What is the current behavior?
When installing,
yarn add
grabs everything and always links everything. I've built a repo to duplicate the issue. For example,What is the expected behavior?
Not that?
Please mention your node.js, yarn and operating system version.
From my repo:
bash
:PowerShell
:The text was updated successfully, but these errors were encountered: