Skip to content

Issue in packaging sharp #178

Open
Open

Description

@lucarosty

When I try to package the last version of sharp the linux executable fail to load modules

Activity

  1. robertsLando commented on Oct 10, 2025

    @robertsLando
    Member
  2. segevfiner commented on May 25, 2026

    @segevfiner

    This doesn't seem to work for me due to sharp having split libvips into a separate package that doesn't have a .node file so doesn't get extracted by pkg, so the actual sharp .node file fails to load as it fails to find it.

  3. robertsLando commented on May 25, 2026

    @robertsLando
    Member

    add that to assets then

  4. segevfiner commented on May 25, 2026

    @segevfiner

    I did. But then at runtime, pkg only extract @img/sharp-{os}¢, without extracting @img/sharp-libvips-{os}`, so the node file fails finds the shared object in the libvips package.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions