Skip to content

--link-duplicates error #2734

Closed
Closed
@STRML

Description

@STRML

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

This is a bug in the pre-release 0.21.2 version with the --link-duplicates flag.

What is the current behavior?

Installing a project with @kadira/storybook and webpack@2 results in the following error:

error An unexpected error occurred: "EEXIST: file already exists, link '/home/git/forks/yarn-link-bug/node_modules/@kadira/storybook/node_modules/enhanced-resolve/node_modules/memory-fs/.npmignore' -> '/home/git/forks/yarn-link-bug/node_modules/babel-loader/node_modules/enhanced-resolve/node_modules/memory-fs/.npmignore'".

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

Node 6.9.2, Yarn 0.21.2, OSX Sierra.

Reproduction Repository

A reproduction is available.

Ref: #2620 (comment) and this tweet. My preference would be for the feature to remain as it gives us significant (20%) size savings on our frontend project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions