Skip to content

[bug] yarn leaves failed modules in node_modules #1328

Description

@MarshallOfSound

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

Bug

What is the current behavior?

When installing an optionalDependency that fails in a "install" script (such as an incompatible native dependency) the module folder is left behind in the node_modules directory

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

Make a new package.json that depends on the "mouse-forward-back" module as an optional dependency and run yarn on a windows machine

What is the expected behavior?

The optionalDependency should fail to install and not be present in the node_modules folder

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

Windows 10, Yarn 0.16.1, Node.JS 6.3.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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