提问人:NewbieMF 提问时间:10/22/2023 更新时间:10/22/2023 访问量:21
在 nodeJs discord bot 的 replit 中安装 ffmpeg 后出错
Error after installing ffmpeg in replit for nodeJs discord bot
问:
我想托管我的 discord 音乐机器人,在托管机器人之前它运行良好,但是当我在 Replit 上托管它时,发生了错误 FFmpeg/avconv not found!。 我按照互联网上用户所说的话,将pkgs.ffmpeg.bin添加到replit.nix当我再次尝试使用音乐机器人时,出现了如下错误:
An error encountered: PlayingError: Error: Cannot find module '/home/runner/parrhesbot/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-x64-glibc-2.31/opus.node'
Require stack:
/home/runner/parrhesbot/node_modules/@discordjs/opus/lib/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Error: Cannot find module 'node-opus'
Require stack:
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Error: Cannot find module 'opusscript'
Require stack:
/home/runner/parrhesbot/node_modules/prism-media/src/util/loader.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/Opus.js
/home/runner/parrhesbot/node_modules/prism-media/src/opus/index.js
/home/runner/parrhesbot/node_modules/prism-media/src/index.js
/home/runner/parrhesbot/node_modules/@discordjs/voice/dist/index.js
/home/runner/parrhesbot/node_modules/distube/dist/index.js
/home/runner/parrhesbot/bot.js
/home/runner/parrhesbot/index.js
Id: EfACVChwxnI
我的 Discord 音乐机器人如何像托管前一样正常运行?
答: 暂无答案
评论