Open daniel04092004-prog opened 3 years ago
i have all required modules installed on the hosting Modules: discord.js mongoose mongodb @discordjs/builders @discordjs/opus @discordjs/rest @discordjs/voice @vitalets/google-translate-api cheerio discord-api-types discord.js-pages ffmpeg-static iso-639-1 libsodium-wrappers spotify-url-info youtube-dl-exec youtube-sr ytdl-core
npm WARN While resolving: prism-media@1.3.2
npm WARN Found: @discordjs/opus@0.6.0
npm WARN node_modules/@discordjs/opus
npm WARN @discordjs/opus@"^0.6.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peerOptional @discordjs/opus@"^0.5.0" from prism-media@1.3.2
npm WARN node_modules/prism-media
npm WARN prism-media@"^1.3.1" from @discordjs/voice@0.6.0
npm WARN node_modules/@discordjs/voice
npm WARN
npm WARN Conflicting peer dependency: @discordjs/opus@0.5.3
npm WARN node_modules/@discordjs/opus
npm WARN peerOptional @discordjs/opus@"^0.5.0" from prism-media@1.3.2
npm WARN node_modules/prism-media
npm WARN prism-media@"^1.3.1" from @discordjs/voice@0.6.0
npm WARN node_modules/@discordjs/voice
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@sapphire/async-queue@1.1.5',
npm WARN EBADENGINE required: { node: '>=v14.18.0', npm: '>=7.24.1' },
npm WARN EBADENGINE current: { node: 'v16.10.0', npm: '7.24.0' }
npm WARN EBADENGINE }
npm ERR! code 1
npm ERR! path /home/container/node_modules/youtube-dl-exec
npm ERR! command failed
npm ERR! command sh -c npm run check && node scripts/postinstall.js
npm ERR! > youtube-dl-exec@1.2.14 check
npm ERR! > bin-version-check python ">=2"
npm ERR! Error: Couldn't find the python
binary. Make sure it's installed and in your $PATH.
npm ERR! at binaryVersion (file:///home/container/node_modules/bin-version/index.js:44:22)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:96:5)
npm ERR! at async binaryVersionCheck (file:///home/container/node_modules/bin-version-check/index.js:14:18)
npm ERR! A complete log of this run can be found in: npm ERR! /home/container/.npm/_logs/2021-10-06T14_48_48_566Z-debug.log
changed 2 packages, and audited 1115 packages in 5s
npm ERR! Error: Couldn't find the `python` binary. Make sure it's installed and in your $PATH.
got the exact same thing when running/deploying w docker. can confirm this is reproducible
got the exact same thing when running/deploying w docker. can confirm this is reproducible
+1 my railway deploy fails too
Ok so the issue is missing build-essential
package in your os
This error occurs in the @discordjs/opus
package
Here's the link to issue: https://github.com/discordjs/opus/issues/116
For me on fedora 35 this was the command to run
sudo dnf install make automake gcc gcc-c++ kernel-devel
Fixed this in my pr #80 (the last commit)
s.node' Require stack: