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

yarn issue invalid distance too far and no yarn-metadata.json file found #5308

Open
msimonian77 opened this issue Feb 1, 2018 · 2 comments
Assignees
Labels

Comments

@msimonian77
Copy link

I'm just trying to install the simple react app:
npx create-react-app my-app
But getting this error from yarn:

Installing react, react-dom, and react-scripts...
yarn add v1.3.2
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.2.tgz: invalid distance too far back
error https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz: invalid distance too far back
[3/4] Linking dependencies...
error An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Users\...\AppData\Local\Yarn\cache\v1\npm-fsevents-1.1.3-11f82318f5fe7bb2cd22965a108e9306208216d8\.yarn-metadata.json'".
info If you think this is a bug, please open a bug report with the information provided in "V:\...\my-app\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
yarnpkg add --exact react reac-dom react-scripts --cwd V:\GXP\my-app has failed.

Here are the versions of node (v8.9.4) yarn (v1.3.2) I'm on windows 10

@ghost ghost assigned BYK Feb 1, 2018
@ghost ghost added the triaged label Feb 1, 2018
@msimonian77
Copy link
Author

the log has this error:
Error: EPERM: operation not permitted, mkdir 'C:\Users...\AppData\Local\Yarn\cache\v1'

But if i go to the
C:\Users...\AppData\Local\Yarn\cache\v1
directory there are tons of npm- directories created.

@msimonian77
Copy link
Author

I had to use the --use-npm flag to pass this issue but this is a problem with yarn that needs to be fixed.

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

No branches or pull requests

2 participants