【问题标题】:heroku push with npm problemsheroku push 有 npm 问题
【发布时间】:2021-09-01 10:03:11
【问题描述】:

我试图将我的 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 discord.js


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2011-08-26
    • 1970-01-01
    • 1970-01-01
    • 2018-06-29
    • 2020-08-22
    • 2013-06-11
    • 1970-01-01
    • 2014-09-23
    相关资源
    最近更新 更多