Skip to content

linux/riscv64: Build fails with EBADPLATFORM #95

@silverwind

Description

@silverwind

Platformlinux/riscv64 gives this build error and subsequent download attempt fails with Could not find "package/resolver.wasm32-wasi.node" in archive. Could a prebuild be added for it?

#35 146.8 npm error code 1
#35 146.8 npm error path /go/src/code.gitea.io/gitea/node_modules/unrs-resolver
#35 146.8 npm error command failed
#35 146.8 npm error command sh -c napi-postinstall unrs-resolver check
#35 146.8 npm error [[email protected]] Trying to install package "@unrs/resolver-binding-wasm32-wasi" using npm
#35 146.8 npm error [[email protected]] Failed to install package "@unrs/resolver-binding-wasm32-wasi" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false @unrs/[email protected]
#35 146.8 npm error npm error code EBADPLATFORM
#35 146.8 npm error npm error notsup Unsupported platform for @unrs/[email protected]: wanted {"cpu":"wasm32"} (current: {"cpu":"riscv64"})
#35 146.8 npm error npm error notsup Valid cpu:  wasm32
#35 146.8 npm error npm error notsup Actual cpu: riscv64
#35 146.8 npm error npm error A complete log of this run can be found in: /root/.npm/_logs/2025-04-23T21_26_27_275Z-debug-0.log
#35 146.8 npm error
#35 146.8 npm error [[email protected]] Trying to download "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.6.4.tgz"
#35 146.8 npm error [[email protected]] Failed to download "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.6.4.tgz": Could not find "package/resolver.wasm32-wasi.node" in archive
#35 146.8 npm error /go/src/code.gitea.io/gitea/node_modules/napi-postinstall/lib/index.js:140
#35 146.8 npm error                     throw new Error(`Failed to install package "${pkg}": ${(0, helpers_js_1.getErrorMessage)(err)}`);
#35 146.8 npm error                           ^
#35 146.8 npm error
#35 146.8 npm error Error: Failed to install package "@unrs/resolver-binding-wasm32-wasi": Could not find "package/resolver.wasm32-wasi.node" in archive
#35 146.8 npm error     at checkAndPreparePackage (/go/src/code.gitea.io/gitea/node_modules/napi-postinstall/lib/index.js:140:27)
#35 146.8 npm error     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
#35 146.8 npm error
#35 146.8 npm error Node.js v22.13.1

Ref: https://github.com/go-gitea/gitea/actions/runs/14628385813/job/41045345423

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