Skip to content

[Bug] Yarn 2 install Failed with errors on react-scripts 4 #2077

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

Closed
1 task
Kizmar opened this issue Nov 3, 2020 · 1 comment · Fixed by #2078
Closed
1 task

[Bug] Yarn 2 install Failed with errors on react-scripts 4 #2077

Kizmar opened this issue Nov 3, 2020 · 1 comment · Fixed by #2078
Assignees
Labels
bug Something isn't working

Comments

@Kizmar
Copy link

Kizmar commented Nov 3, 2020

  • I'd be willing to implement a fix

Describe the bug
I don't know if this is a Yarn issue, or a react-scripts issue...

I just deleted our yarn.lock and node_modules folder so I could run a clean yarn install to debug an issue with CI. Long story short, I debugged this by removing all dependencies and slowly added them back in while running yarn install to see which one was causing the error below. Come to find out, it's react-scripts: 4.0.0 that's causing it.

The error in question:

YN0066: │ fsevents@patch:fsevents@npm%3A2.2.0#builtin<compat/fsevents>::version=2.2.0&hash=127e8e: Cannot apply hunk #1 (set enableInlineHunks for details)
...
YN0000: Failed with errors in 25s 499ms

To Reproduce
Run yarn add react-scripts --dev does it for me - or - run yarn install with react-scripts: 4.0.0 already in your package.json dependencies.

Environment if relevant (please complete the following information):

  • OS: Windows 10
  • Node version 12.19.0 & just installed Node 14.15.0 (same result)
  • Yarn version 2.3.3 (yarnPath: .yarn/releases/yarn-berry.cjs)

Additional context

I also tried re-installing react-scripts on a global level and running yarn install again but got the same result.

@Kizmar Kizmar added the bug Something isn't working label Nov 3, 2020
@merceyz
Copy link
Member

merceyz commented Nov 3, 2020

fsevents released a new version 6 hours ago so seems we need to update the patch https://github.com/fsevents/fsevents/releases/tag/v2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants