Skip to content

Could not find a copy of {pkg.name} to link in {location} #6285

Closed
@tquetano-r7

Description

@tquetano-r7

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.

Metadata

Metadata

Assignees

Labels

fixed-in-modernThis issue has been fixed / implemented in Yarn 2+.triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions