berry: [Bug] Cannot install fsevents - Cannot apply hunk #1
- I’d be willing to implement a fix
Describe the bug
Some package requires fsevents
to be fetched, but it fails.
➤ YN0000: ┌ Fetch step
➤ YN0013: │ fsevents@patch:fsevents@npm%3A2.0.7#builtin<compat/fsevents>::version=2.0.7&hash=e8cd9e can't be found in the cache and will be fetched from the disk
➤ YN0001: │ Error: fsevents@patch:fsevents@npm%3A2.0.7#builtin<compat/fsevents>::version=2.0.7&hash=e8cd9e: Cannot apply hunk #1
at c (...\yarn\bin\yarn.js:111:195461)
at process._tickCallback (internal/process/next_tick.js:68:7)
➤ YN0000: └ Completed in 1.24s
➤ YN0000: Failed with errors in 8.69s
To Reproduce
await expect(packageJsonAndInstall({
dependencies: {
[`fsevents`]: `2.0.7`
}
})).resolves.toBeTruthy();
Environment if relevant (please complete the following information):
- OS: Windows 10 (build 18362.592)
- Node 10.16.0
- Yarn 2.0.0-rc.24
Additional context
I suspect that this error may be related to PR https://github.com/yarnpkg/berry/pull/692
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 11
- Comments: 21 (4 by maintainers)
Upgrading yarn to the version on master works for me
Any updates? Still cannot upgrade CRA to Yarn 2 🤦♂️
The 2.2.1 version of fsevents appeared to be the problem, so I updated the version in
yarn.lock
to the following and it solvedbefore:
after:
Hm indeed - the patch doesn’t apply cleanly on 2.0.0 to 2.0.7, which have a very different structure than the later releases:
https://cdn.jsdelivr.net/npm/fsevents@2.0.7/fsevents.js https://cdn.jsdelivr.net/npm/fsevents@2.1.2/fsevents.js
I guess you can’t simply upgrade fsevents?