Skip to content

Postinstall failure on npm with --no-bin-links #190

@BasiliskHill

Description

@BasiliskHill

There appears to be an issue with the current postinstall script when attempting to install the package using the --no-bin-links flag on npm.

Testing on both RHEL and Windows shows that attempting to install with --no-bin-links results in the shell being unable to find the required napi-postinstall binary (due to the lack of the binary link creation). Installing without this flag installs correctly.

Updating the postinstall script to run napi-postinstall through npx (as npx -y napi-postinstall) resolves this issue, but I'm unsure as to whether or not this solution works correctly with other package managers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions