本文介绍了如何解决"peer dep missing"问题?在Heroku上发行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Heroku上安装 node-opus discord.js 时,然后通过 heroku run bash运行 npm list code>我收到以下警告:

When I install node-opus and discord.js on Heroku and then run npm list via heroku run bash I get the following warning:

我该如何解决?

这是我的 package.json :

{
  "name": "PrzegrywBOT",
  "description": "PrzegrywBOT",
  "version": "2.0.0",
  "engines": {
    "node": "10.15.0"
  },
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
  },
  "dependencies": {
    "cheerio": "^1.0.0-rc.2",
    "discord.js": "^11.4.2",
    "ffmpeg": "0.0.4",
    "ffmpeg-binaries": "^4.0.0",
    "node-opus": "^0.3.1",
    "request": "^2.88.0",
    "simple-youtube-api": "^5.1.1",
    "superagent": "^4.1.0",
    "ytdl-core": "^0.29.1"
  }
}

推荐答案

我目前遇到相同的问题,似乎与opus和heroku有关.

I am currently having the same issue, it seems to be something about opus and heroku.

您是否尝试过安装这些buildpack?

Have you tried installed build these buildpacks?

您可以将它们安装在应用程序右侧的设置"标签上,向下滚动并添加以下buildpack: https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest https://elements.heroku.com/buildpacks/dubsmash/heroku-buildpack-作品 https://elements.heroku.com/buildpacks/crazycatz00/heroku-buildpack-libopus

You can install them on the settings tab on the right side of your app, scroll down and add these buildpacks:https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latesthttps://elements.heroku.com/buildpacks/dubsmash/heroku-buildpack-opushttps://elements.heroku.com/buildpacks/crazycatz00/heroku-buildpack-libopus

让我知道它是否更改了任何内容

Let me know if it did change anything

这篇关于如何解决"peer dep missing"问题?在Heroku上发行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 23:53