Closed
Description
- I'd be willing to implement a fix
Describe the bug
In my company's mono repo I tried to migrate to Yarn 2. I ran yarn set version berry
then yarn install
, this is its output:
➤ YN0000: └ Completed in 18.14s
➤ 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 (/home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:888997)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:891128
at async o (/home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:888280)
at async Object.t.applyPatchFile (/home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:891101)
at async t.PatchFetcher.patchPackage (/home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:888035)
at async /home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:58:887292
at async /home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:36:570234
at async /home/pierre/Documents/owp/aw-front/.yarn/releases/yarn-berry.js:36:570177
➤ YN0000: └ Completed in 1.36s
➤ YN0000: Failed with errors in 19.5s
To Reproduce
Sorry but I don't share any code/package.json because it's private. But I could try to adapt an share dummy stuff.
What I can tell is we are using a mono repo architecture, using yarn workspaces feature to manage it.
The root package.json
looks something like this:
{
"name": "project x",
"private": true,
"scripts": {
"clean": "./clean_node.sh",
"build_libs": "./build_libs.sh"
},
"workspaces": {
"packages": [
"workspaces/*"
],
"nohoist": [
"**/webpack",
"**/jest"
]
},
"dependencies": {},
"devDependencies": {
"eslint": "^6.6.0",
...
"jest": "^24.9.0",
"prettier": "^1.19.1"
}
}
Under the directory workspaces
are our workspaces.
We have no direct dependencies on fsevents
.
Screenshots
Environment if relevant (please complete the following information):
- OS: Arch Linux
- Node version: 12.12.0
- Yarn version: 2.0.0-rc.28