-
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 install error ENOENT: no such file or directory #4563
Comments
Hopefully not noise: I see a similar symptom on 1.0.2, and I wonder if it could be the same cause:
My system specs: Yarn version: 1.0.2 |
My installed yarn version: 1.2.1 I have often a similar problem, when I try to use the command |
I can confirm exactly the same behaviour as reported by @matthewtoast. We are having this issue for the last 3 months. The interesting thing is that it always happens on our CI (jenkins in docker, official image) and on machines with macOS, but it never happend to me on archlinux. Yarn version: 1.2.1 |
Also having issues with this when running yarn inside Docker. I haven't seen it outside Docker, but I don't use it much outside Docker either. Yarn version: 1.2.1 |
Same thing is happening here, sometimes it passes, sometimes it doesn't. It's not connected to any mutex configuration, as it happens with all. Yarn 1.3.2 |
We've been hitting issues in CI that look like yarnpkg/yarn#4563 and our hope is that this addresses the issue
We've been hitting issues in CI that look like yarnpkg/yarn#4563 and our hope is that this addresses the issue
We've been hitting issues in CI that look like yarnpkg/yarn#4563 and our hope is that this addresses the issue
For me it was a disk space issue. I was running out of inodes ( |
Getting this error a lot with random missing files in Docker
|
Getting the same error consistently.
|
I have started experiencing this issue as well. I've tried different fixes but it just seems to vary to which file is the issue. i'm on yarn 1.5.1 will try updating now update: problem persists |
I see this running v1.7.0 on MacOS. This was occurring consistently in a large project that uses yarn workspaces with liberal yarn-error.log
I tried many different tricks (clearing cache, limiting network concurrency, etc) but what finally succeeded was making sure |
Windows 10 Running on bash (via WSL) inside VSCode. Running Further investigation shows that the "Fetching packages..." stage doesn't actually fetch anything. It creates the entire directory tree under Running This is likely related to WSL and filesystem permissions more than yarn, but it would be nice if yarn produced some kind of error/warning message at "Fetching packages..." when it actually fails to do so. |
for fellow googlers having the same problem: its a file system restriction. Windows 10, Ubuntu Bash & yarn when even sudo yarn install does not work, while highly discouraged doing so, will probably fix it:
warning: your node modules will be installed with root rights which is a potential security risk. This however fixes days not beeing able to install any yarn package |
This is unfathomably frustrating, especially when running My strategy now is to run it in a loop until it succeeds. Here's for other sorry souls who are at their wit's end and just want the damn packages installed:
Run that, set your laptop away from anything flammable, and go get dinner. Best luck. |
I actually believe I might have a hypothesis of the issue here. How many of you use watcher processes, such as auto-build, hot reload or automated localhost servers defined at I didn't have this issue at older machine, when I had increased the file cap due to building really fast web scraper, which used temp/shm as storage. |
I'm having this issue now. Even retrying many times does not solve it. I thought I would give yarn a go to use the workspaces feature. |
Solving this temporarily with I've tried sudo yarn install, I've tried older versions of yarn I've tried doing it in docker, I've tried configuring max concurrency etc. Nothing solves it so far. |
I was getting this same frustrating and hard to debug error. The problem in my case seemed to be |
Buidler is very fragile when used in monorepos: NomicFoundation/hardhat#468 NomicFoundation/hardhat#532 NomicFoundation/hardhat#570 Let's try using roderik's workaround from here again: NomicFoundation/hardhat#468 Unfortunately this breaks create-react-app, so try to work around that by nohoisting the entire dev-frontend package. Now we need to keep an eye on this problem, because it seems to occur sometimes: yarnpkg/yarn#4563 :S
This is an attempt to avoid yarnpkg/yarn#4563
Buidler is very fragile when used in monorepos: NomicFoundation/hardhat#468 NomicFoundation/hardhat#532 NomicFoundation/hardhat#570 Let's try using roderik's workaround from here again: NomicFoundation/hardhat#468 Unfortunately this breaks create-react-app, so try to work around that by nohoisting the entire dev-frontend package. Now we need to keep an eye on this problem, because it seems to occur sometimes: yarnpkg/yarn#4563 :S
This is an attempt to avoid yarnpkg/yarn#4563
Buidler is very fragile when used in monorepos: NomicFoundation/hardhat#468 NomicFoundation/hardhat#532 NomicFoundation/hardhat#570 Let's try using roderik's workaround from here again: NomicFoundation/hardhat#468 Unfortunately this breaks create-react-app, so try to work around that by nohoisting the entire dev-frontend package. Now we need to keep an eye on this problem, because it seems to occur sometimes: yarnpkg/yarn#4563 :S
This is an attempt to avoid yarnpkg/yarn#4563
I can confirm I have the same issue with yarn workspace, when extensively using no-hoist |
Can also confirm the issue started to appear after different version of the same dependency is used across the monorepo. |
We also have "a large repo using workspaces and no-hoist". I see this issue 100% of the time when using any of
But I can run |
I have observed a very similar issue when trying to install a package with local path using
The install command only seems to work when the relevant local path in package.json matches
|
I'm noticing this issue with a repo where the packages can't be deduplicated to a single major version. So that makes it kind of hard to resolve this issue. Is there any feedback from the yarn team on this issue? It's been open for over three years. |
Buidler is very fragile when used in monorepos: NomicFoundation/hardhat#468 NomicFoundation/hardhat#532 NomicFoundation/hardhat#570 Let's try using roderik's workaround from here again: NomicFoundation/hardhat#468 Unfortunately this breaks create-react-app, so try to work around that by nohoisting the entire dev-frontend package. Now we need to keep an eye on this problem, because it seems to occur sometimes: yarnpkg/yarn#4563 :S
This is an attempt to avoid yarnpkg/yarn#4563
Any one have any idea why is this happening its tbh its infuriating. |
Closing as fixed in v2 where the cache has been improved to avoid these sorts of issues |
I experienced this issue with I a yarn v1 monorepo which had aggressively no-hoisted packages, when I tried to create dependent references between the packages. My workaround was to
ps @merceyz is there no better way of managing yarn v1 issues than just closing them because they're fixed in v2? |
That's sort of the whole point of issues, no? Close them as they get fixed |
Not when the upgrade is a complete-rewrite new major version with a migration path preventing some users from upgrading immediately, and you're still supporting the old version with patches. Maybe prefix the issue title with (Apologies if you've already stopped supporting v1 -- that's not apparent to me.) |
@merceyz: could you please re-open this issue? I'm encountering it on yarn v2.4.1, so your assumption that this is fixed in yarn v2 is incorrect. Yarn version: 2.4.1 |
@rdroog Open a new issue with a reproduction for v2 if that's the case https://github.com/yarnpkg/berry |
What worked for me was to delete node_modules and run yarn again. The error was gone after that.
Hope it helps someone |
TL;DRIf all the previous solutions did not work with You, try this:
yarn config set "strict-ssl" false -g
|
I struggled with the same issue, on yarn 1.22.* with workspaces and nohoist:
In my case, it always failed in a specific package's dev dependencies (the "shared" package that contains types and code shared across the repo, and a lot of times I also did |
Yarn version: 1.1.0
Node version: 6.9.4
Platform: linux arm Raspbian 64 bits (Raspberry pi 3)
When I run the command
yarn install --production
with a yarn.lock file I have a random errorNot always on the same package, it's look like an old bug: #2629
I manage to complete the installation with the command with
yarn install --production --network-concurrency 1
.I try to clear the cache but the problem was still present.
The problem may be related to very bad network connection, the installation stopped not much after seeing a warning about a failed connection.
yarn-error-viktor.log
yarn.lock.txt
The text was updated successfully, but these errors were encountered: