Skip to content

@mongodb-js/zstd fails to install on 22.14 with "N-API version undefined" #57118

@drunkcod

Description

@drunkcod

Version

22.14

Platform

Linux & MacOS.

Subsystem

No response

What steps will reproduce the bug?

Try to install @mongodb-js/zstd using Docker.

Works on "node:22.13-bookworm-slim" fails on "node:22.14-bookworm-slim"

Looks like this:

13.44 npm error code 127
13.44 npm error path /app/node_modules/@mongodb-js/zstd
13.44 npm error command failed
13.44 npm error command sh -c prebuild-install --runtime napi || npm run clean-install
13.44 npm error > @mongodb-js/[email protected] clean-install
13.44 npm error > npm run install-zstd && npm run compile
13.44 npm error
13.44 npm error
13.44 npm error > @mongodb-js/[email protected] install-zstd
13.44 npm error > bash etc/install-zstd.sh
13.44 npm error prebuild-install warn This package does not support N-API version undefined
13.44 npm error prebuild-install warn install No prebuilt binaries found (target=undefined runtime=napi arch=arm64 libc= platform=linux)
13.44 npm error bash: etc/install-zstd.sh: No such file or directory

How often does it reproduce? Is there a required condition?

Every time.

What is the expected behavior? Why is that the expected behavior?

Success.

What do you see instead?

13.44 npm error code 127
13.44 npm error path /app/node_modules/@mongodb-js/zstd
13.44 npm error command failed
13.44 npm error command sh -c prebuild-install --runtime napi || npm run clean-install
13.44 npm error > @mongodb-js/[email protected] clean-install
13.44 npm error > npm run install-zstd && npm run compile
13.44 npm error
13.44 npm error
13.44 npm error > @mongodb-js/[email protected] install-zstd
13.44 npm error > bash etc/install-zstd.sh
13.44 npm error prebuild-install warn This package does not support N-API version undefined
13.44 npm error prebuild-install warn install No prebuilt binaries found (target=undefined runtime=napi arch=arm64 libc= platform=linux)
13.44 npm error bash: etc/install-zstd.sh: No such file or directory

Additional information

No response

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