无法使用heroku部署jhipster-registry

问题描述 投票:0回答:2

我尝试使用按钮deploy to heroku部署默认的jhipster注册表,但它失败了。

有人可以帮我吗?

参数:

应用名称myapp-registry

选择一个地区美国

JHIPSTER_PASSWORD ******

JAVA_OPTS -Xmx256m -Xss512k -Dfile.encoding = UTF-8

MAVEN_CUSTOM_OPTS -Pprod,heroku -DskipTests

NPM_CONFIG_PRODUCTION错误

日志:

   binding.target.mk:115: recipe for target 'Release/obj.target/binding/src/binding.o' failed
   make: *** [Release/obj.target/binding/src/binding.o] Error 1
   make: Leaving directory '/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-sass/build'
   gyp ERR! build error
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit (/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-gyp/lib/build.js:285:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
   gyp ERR! System Linux 4.4.0-1014-aws
   gyp ERR! command
   "/tmp/build_e5224961c3b8d6585d4f090ac485ceae/.heroku/node/bin/node"
   "/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-gyp/bin/node-gyp.js"
   "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
   "--libsass_ldflags=" "--libsass_library="
   gyp ERR! cwd > 
   /tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-sass
   gyp ERR! node -v v10.0.0
   gyp ERR! node-gyp -v v3.6.0
   gyp ERR! not ok
   Build failed with error code: 1
   -----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys

   Some possible problems:

   - Dangerous semver range (>) in engines.node
   https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

   Love,
   Heroku
     !     Push rejected, failed to compile Node.js app.  !     Push failed
heroku jhipster jhipster-registry
2个回答
1
投票

此问题是由于与节点10不兼容而导致的。它由此pull request在JHipster注册表代码中修复。 Deploy to Heroku按钮现在可以正常工作


0
投票

此问题是由node-saas引起的,它无法为您的环境下载有效的二进制文件,因此它试图从头开始重建C ++代码,这似乎在Heroku运行器中不可用。

请升级到node-sass v4.9.0,这是第一个支持节点10的版本:qazxsw poi

© www.soinside.com 2019 - 2024. All rights reserved.