discordjs / opus

Native opus bindings for node
MIT License
192 stars 55 forks source link

Pre-built binaries not found for @discordjs/opus@0.3.3 and node@14.15.0 #46

Closed migueljabugo closed 3 years ago

migueljabugo commented 3 years ago

Estoy intentando utilizar el paquete "@discordjs/opus: ^0.3.3" pero resulta imposible porque al intentar descargar la dependencia no encuentra el archivo en la ruta https://github.com/discordjs/opus/releases/download/v0.3.3/opus-v0.3.3-node-v83-napi-v3-linux-arm-musl-1.1.24.tar.gz

` node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/discordjs/opus/releases/download/v0.3.3/opus-v0.3.3-node-v83-napi-v3-linux-arm-musl-1.1.24.tar.gz node-pre-gyp WARN Pre-built binaries not found for @discordjs/opus@0.3.3 and node@14.15.0 (node-v83 ABI, musl) (falling back to source compile with node-gyp) gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python gyp ERR! find Python ** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "/path/to/pythonexecutable" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21) gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16) gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Linux 4.19.66-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24/opus.node" "--module_name=opus" "--module_path=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3" gyp ERR! cwd /home/node/app/node_modules/@discordjs/opus gyp ERR! node -v v14.15.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24/opus.node --module_name=opus --module_path=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/node/app/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:72:20) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Linux 4.19.66-v7+ node-pre-gyp ERR! command "/usr/local/bin/node" "/home/node/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/node/app/node_modules/@discordjs/opus node-pre-gyp ERR! node -v v14.15.0 node-pre-gyp ERR! node-pre-gyp -v v0.1.0 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24/opus.node --module_name=opus --module_path=/home/node/app/node_modules/@discordjs/opus/prebuild/node-v83-napi-v3-linux-arm-musl-1.1.24 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @discordjs/opus@0.3.3 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @discordjs/opus@0.3.3 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/node/.npm/_logs/2020-11-18T21_20_08_731Z-debug.log `

papaia commented 3 years ago

translation: I am trying to use the package "@ discordjs / opus: ^ 0.3.3" but it is impossible because when trying to download the dependency it does not find the file in the path

iCrawl commented 3 years ago

It does fallback to building it locally on your system which is intended in this case.

You just don't have the correct and proper build tools installed.