discordjs/opus

Support for Raspberry pi 4

adremides opened this issue · 0 comments

Precompiled binary not found.

Log: (partial)

#0 92.05 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/node/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node --module_name=opus --module_path=/home/node/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
#0 92.05 npm ERR! node-pre-gyp info it worked if it ends with ok
#0 92.05 npm ERR! node-pre-gyp info using node-pre-gyp@0.4.2
#0 92.05 npm ERR! node-pre-gyp info using node@16.15.1 | linux | arm64
#0 92.05 npm ERR! node-pre-gyp info check checked for "/home/node/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node" (not found)
#0 92.05 npm ERR! node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz
#0 92.05 npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz 
#0 92.05 npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @discordjs/opus@0.7.0 and node@16.15.1 (node-v93 ABI, musl) (falling back to source compile with node-gyp) 
#0 92.05 npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz

Include a reproducible code sample here, if possible:

# Dockerfile
FROM arm64v8/node:16-alpine

WORKDIR /home/node

RUN npm i @discordjs/opus

Further details:

  • @discordjs/opus version: 0.7.0
  • Node.js version: 16.15.1
  • Operating system: alpine
  • Priority this issue should have – please be realistic and elaborate if possible: low, it still can be compiled during instalation, slowing down building stage.