Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
When doing yarn install
, I get an linking error at the very end when yarn
attempts to link packages under the hood, causing the overall install to fail.
If the current behavior is a bug, please provide the steps to reproduce.
This is consistently reproducible when running a simple yarn install
. This was also present in version 1.9.2
, but I waited to see if 1.9.4
would fix it, as it was a fast-follow.
Here is the (sanitized) error in trace in my yarn-error.log
=>
Invariant Violation: could not find a copy of uuid to link in /home/tquetano/git/{repository}/node_modules/{package}/node_modules
at invariant (/usr/lib/node_modules/yarn/lib/cli.js:1745:15)
at PackageLinker.<anonymous> (/usr/lib/node_modules/yarn/lib/cli.js:49512:7)
at Generator.next (<anonymous>)
at step (/usr/lib/node_modules/yarn/lib/cli.js:92:30)
at /usr/lib/node_modules/yarn/lib/cli.js:103:13
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
What is the expected behavior?
To install properly!
Please mention your node.js, yarn and operating system version.
Node => 8.11.4
Yarn => 1.9.4
OS => Manjaro Linux (Arch-based)
If there is more specific information I can provide to help, please let me know.
I’m seeing this also. I believe it has to do with peer-dependencies. In my case, I’m trying to install
eslint-config-standard-preact
which has a peer dependency ofeslint >= 3.0.0
. When I haveeslint-config-standard-preact
installed and runyarn add -D eslint
, I receive errors similar to those above even though the version it is installing (5.7.0) matches that criteria. As pointed out on zouhir/eslint-config-standard-preact#11, you can install a specific version (even if it’s effectively the same) and it’ll work (ex.yarn add -D eslint@5.7.0
).I found a stupid workaround, just specify version like this
yarn add uuid@3.3.2
I did it following theyarn clean cache uuid
but it could be enough by itself