Skip to content

yarn run install is incompatible with Yarn >= 3 #103

@davej

Description

@davej

It seems that yarn run install was a way of forcing yarn to run install scripts and rebuild the module in Yarn 1.

image

However, in Yarn 3, it seems like they dropped support for this:

image

app-builder relies on this mechanism so is therefore incompatible with Yarn 3+.

One potential way to fix this would be to edit the rebuildUsingYarn function so that it detects the version of Yarn and runs a command that would be compatible with Yarn 3+, perhaps yarn run node-gyp rebuild? What do you think?

realated: electron-userland/electron-builder#8024

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions