-
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
"No such file file or directory, lstat" for Yarn cache during package install on Windows #1834
Comments
same on ubuntu |
same on macOs Sierra 10.12.1
|
I can confirm, this is a regression after 0.16.1 |
I tried finding the reason and could nail it down to: https://github.com/yarnpkg/yarn/blob/master/src/resolvers/exotics/hosted-git-resolver.js#L140 missing the hash attribute. This results in the package being created in the cache folder with a name without the hash (https://github.com/yarnpkg/yarn/blob/master/src/config.js#L265). After it is downloaded however the hash is set here: https://github.com/yarnpkg/yarn/blob/master/src/package-fetcher.js#L91 removing this assignment fixes the problem. |
@thomaschaaf, would you try sending a PR with a unit test? |
@bestander the better option would be to get the hash in https://github.com/yarnpkg/yarn/blob/master/src/resolvers/exotics/hosted-git-resolver.js#L140 here. I am still trying to navigate through the code but can't figure out how it was done before. |
@bestander I am sorry I can't create a unit test at the moment - as I have to be up early in the morning. The PR should fix the problem :) |
Wow that was quick! Thanks everyone! :) |
Same here, with [email protected], [email protected], macOS10.12.1
|
Experiencing this problem in
|
Interestingly, when I updated my npm prefix, per: https://docs.npmjs.com/getting-started/fixing-npm-permissions and then I ran yarn v0.17.2, it worked fine |
Today, same problem, windows 7, yarn 0.17.9, node 6.8.1, npm 4.0.3 |
I had the same error using Main error : Uname -a : |
I am still seeing this error with
|
I had the similar error with Arguments: Yarn version: Node version: Platform: npm manifest: yarn manifest: Lockfile: Trace: |
The lstat/ENOTDIR/ENOENT error is investigated in #2629 |
same issue here as well, os x sierra, node 6.9.2, latest yarn |
Still seeing this error with github based packages on yarn |
Yep - a pulling a package from github completely broke our yarn as well. |
I have this issue with yarn 1.6.0 node v9.11.1. Are there a way to fix this without reverting to older version? |
same problem, yarn 1.7.0 on mac |
Same problem on Mac OS |
Same problem, on Windows 10 WSL |
Same problem on Ubuntu 18.04 |
This keeps happening all the time, which is extremely annoying. So now I have to run |
Got the same problem while running create-react-app. |
Same issue on linux subsystem Ubuntu 18.04 for windows 10, then
|
i recently ran into the same issue on windows 10 and windows 8.1 .. however, when looking for the file that was mentioned in the error description, i found out, that the file exist but cannot be read ... (e.g., if i try to open the file with a notepad). When i than ran a Then, the issue was resolved.. Buuuuuuuuuuuuuuuuuuuut - it emerged some weeks later again.. so i re-repaired the disk and so on, and now it works again.. Any solution for this? Because i don't think my disk is broken - it is quite new! |
i managed to solve the issue with running
This process, however, takes ages, because it downloads all packages again because you a) don't have a cache any more and your lock file has been removed. |
@andsmi97 I don't know any flag but I use this script to run
It is Linux script (could run on Windows WSL or MacOS, I don't know) |
funny just found the exact same snippet here: #4563 (comment) :) |
I was getting this same frustrating and hard to debug error. The problem in my case seemed to be |
I've noticed that this error only started occurring when I used the |
In my case removing node_modules and installing again wirked |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I'm on Windows 10, Node v6.9.1, and Yarn 0.17.0
I'm running
yarn
to install packages for a personal project and during installation, I get the error:I'm guessing yarn is not a big fan of the Gulp version
"github:gulpjs/gulp#4.0"
which causes it to have the above issue. Runningyarn cache clean
and redoing the install doesn't help.What is the expected behavior?
Installation without errors. Running
npm install
with npm version 3.10.8 works without a hitch.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: