Ruby 2.7.4
Rails 6.1.4.1
注意:在我的应用程序中,package.json
文件中缺少engines
键。
Heroku构建失败,并显示以下错误:
此提交是昨天我成功推送的SHA顶部的空提交(我已经检查了两次)。因此,我怀疑这可能是一个平台问题,或者某种方式node-sass昨天被废弃或撤下了?
我该如何解决这个问题呢?
remote:
remote: ERROR in ./app/javascript/require_bootstrap.scss
remote: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
remote: ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
**remote: Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)**
remote: For more information on which environments are supported please see:
remote: https://github.com/sass/node-sass/releases/tag/v4.14.1
remote: at module.exports (/tmp/build_1c436dcf/node_modules/node-sass/lib/binding.js:13:13)
remote: at Object.<anonymous> (/tmp/build_1c436dcf/node_modules/node-sass/lib/index.js:14:35)
remote: at Module._compile (/tmp/build_1c436dcf/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
remote: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
package.json
中指定14.x节点。 - Anthony Toheroku/nodejs
包默认使用 Node 14,但这将会改变,就像heroku/ruby
buildpack 一样。如果您按照步骤1指示说明需要 Node 14,则在他们将默认版本更改为 Node 16 时,您将不会遇到任何问题。 - tpettheroku/nodejs
和heroku/ruby
。 - DoubleD