【问题标题】:gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 when pushing on heroku吉普错误!构建错误 gyp ERR!堆栈错误:`make` 失败,退出代码:2 推送 heroku 时
【发布时间】:2022-02-10 04:37:00
【问题描述】:

在 Heroku 上推送我的 rails 项目时,我得到:

远程:gyp ERR!构建错误

远程:gyp ERR!堆栈错误:make 失败,退出代码:2

远程:gyp ERR! ChildProcess.onExit (/tmp/build_47b2dcad/node_modules/node-gyp/lib/build.js:262:23) 的堆栈 远程:gyp ERR! ChildProcess.emit (node:events:390:28) 处的堆栈

远程:gyp ERR! Process.ChildProcess._handle.onexit 处的堆栈(节点:internal/child_process:290:12) 远程:gyp ERR!系统 Linux 4.4.0-1097-aws

远程:gyp ERR!命令 "/tmp/build_47b2dcad/bin/node" "/tmp/build_47b2dcad/node_modules/node-gyp/bin/node-gyp.js" "重建" "--verbose" "--libsass_ext=" "--libsass_cflags= " "--libsass_ldflags=""--libsass_library="

远程:gyp ERR! cwd /tmp/build_47b2dcad/node_modules/node-sass

远程:gyp ERR!节点 -v v16.13.1

远程:gyp ERR!节点gyp -v v3.8.0

远程:gyp ERR!不行

远程:构建失败,错误代码:1

远程:

远程:!

远程:!预编译资产失败。

远程:!

远程:! Push 被拒绝,无法编译 Ruby 应用。

有人知道如何帮助我吗?

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: node.js ruby-on-rails npm heroku


【解决方案1】:

node v16 和nodes-sass 也有同样的问题。 (在开发机器上使用 v14)

也许这个答案会有所帮助

Heroku fails during build with Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)

【讨论】:

    猜你喜欢
    • 2020-01-23
    • 2021-08-15
    • 2023-01-19
    • 2021-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-08
    相关资源
    最近更新 更多