0

我正在尝试制作一个 discord.js 机器人,并且我必须在其中实现音乐播放。但由于我将它托管在 Heroku 上,我需要安装https://github.com/fent/node-ytdl-core.git buildpack 但我收到此错误:

Build succeeded!
-----> App not compatible with buildpack: https://github.com/fent/node-ytdl-core.git
       bash: /tmp/codon/tmp/buildpacks/11443dd76ad0133018597f04ce3b59d71d136830/bin/detect: No such file or directory
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

任何可能的解决方案?

4

1 回答 1

0

更新:我解决了这个问题:我在我的电脑上执行了这个命令:npm install @discordjs/opus ffmpeg-static yt-search ytdl-core 我还删除了 buildpack。这解决了所有问题,现在 ytdl-core 完美运行。

于 2021-10-15T09:30:06.163 回答