heroku push 与 npm 问题

heroku push with npm problems

我正在尝试将我的 discord 应用程序推送到 heroku,但存在一些问题,有人可以帮助我吗? 我认为这是来自我的 npm 或其他 idk

       Resolving node version 14.x...
       Downloading and installing node 14.17.1...
       Using default npm version: 6.14.13
       
-----> Installing dependencies
       Prebuild detected (node_modules already exists)
       Rebuilding any native modules
       
       > @discordjs/opus@0.5.3 install /tmp/build_b5827880/node_modules/@discordjs/opus
       > node-pre-gyp install --fallback-to-build
       
       sh: 1: node-pre-gyp: Permission denied
       npm ERR! code ELIFECYCLE
       npm ERR! errno 126
       npm ERR! @discordjs/opus@0.5.3 install: `node-pre-gyp install --fallback-to-build`
       npm ERR! Exit status 126
       npm ERR! 
       npm ERR! Failed at the @discordjs/opus@0.5.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!     /tmp/npmcache.7tseI/_logs/2021-06-16T14_44_27_673Z-debug.log
-----> Build failed

尝试删除 node_modules 文件夹并让 heroku 安装它们,确保你有 package.json

同时检查 node-pre-gyp: Permission denied in heroku push