我在 Heroku 上有一个 Strapi CMS,一切都运行良好,直到我在集合之间建立了另一种关系。从那时起,在 localhost 上,一切正常,但在 Heroku 上,管理面板无法加载,当我尝试获取数据时,我要么收到“请求超时”错误,要么在很长一段时间后,我终于明白了。
问题是即使我恢复以前版本的应用程序并将它们放在Heroku上,这个问题仍然存在吗?输入heroku logs --tail后,我收到此错误:
/bin/sh: 1: cmake: not found
make: *** [config_deps.target.mk:13: /app/.npm/_npx/4/lib/node_modules/heroku/node_modules/cpu-features/deps/cpu_features/build/Makefile] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Linux 4.4.0-1096-aws
gyp ERR! command "/app/.heroku/node/bin/node" "/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /app/.npm/_npx/4/lib/node_modules/heroku/node_modules/cpu-features
gyp ERR! node -v v14.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
make: g++: Command not found
make: *** [sshcrypto.target.mk:113: Release/obj.target/sshcrypto/src/binding.o] Error 127
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Linux 4.4.0-1096-aws
gyp ERR! command "/app/.heroku/node/bin/node" "/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "--target=v14.18.1" "rebuild"
gyp ERR! cwd /app/.npm/_npx/4/lib/node_modules/heroku/node_modules/ssh2/lib/protocol/crypto
gyp ERR! node -v v14.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
[############......] \ postinstall:heroku: sill doSerial postinstall 6232
[############......] / postinstall:wrap-ansi: info lifecycle wrap-ansi@4.0.0~po
[############......] / postinstall:ansi-styles: info lifecycle ansi-styles@2.2.
[############......] | postinstall: info lifecycle heroku@7.59.0~postinstall: h
› Warning: Our terms of service have changed:
› https://dashboard.heroku.com/terms-of-service
› Error: Missing required flag:
› -a, --app APP app to run command against
› See more help with --help