Skip to content

Workspaces nohoist not working with --link-duplicates #5421

@k15a

Description

@k15a

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Yarn doesn't install dependencies.

If the current behavior is a bug, please provide the steps to reproduce.

I've got a bug in our private repo and tried to reproduce it in a new repo. I got a similar result but not exactly the same. The outcome was the same that yarn wasn't able to install the dependencies.
I think the root of the problem is the same.

In both cases, I am using the new nohoist feature and the --link-duplicates flag.

Reproduction / Log: Just clone the repo and run yarn install --link-duplicates

The inital bug I tried to reproduce is:

Error: ENOENT: no such file or directory, lstat '/Users/konstantin/Development/frontend/projects/atoms/node_modules/@monorepo/styling/node_modules/jest'

What is the expected behavior?

Yarn should link all duplicate dependencies in a workspace with nohoist enabled.

Please mention your node.js, yarn and operating system version.

Node: 8.6.0
Yarn: 1.5.1
OS: MacOS High Sierra 10.13.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions