1

您好,我想将 jHipster 生成的源代码部署到 Heroku,但问题是,当我运行命令jhipster heroku时,它会尝试安装 heroku cli 部署插件并失败并出现以下错误。

x { Error: Command failed: heroku plugins:install heroku-cli-deploy
Installing plugin heroku-cli-deploy... !
!    yarn --non-interactive
!    --mutex=file:C:\Users\hassnan.ali\AppData\Local\heroku\yarn
!    --cache-folder=C:\Users\hassnan.ali\AppData\Local\heroku\yarn exited with
!    code 1
!    warning There appears to be trouble with your network connection.
!    Retrying...
!    warning There appears to be trouble with your network connection.
!    Retrying...
!    warning There appears to be trouble with your network connection.
!    Retrying...
!    warning There appears to be trouble with your network connection.
!    Retrying...
!    error An unexpected error occurred:
!    "http://cli-npm.heroku.com/heroku-cli-deploy/-/heroku-cli-deploy-0.4.0/d9f2343c51c08107f6265b34e138c6ba07128f10.tgz:
!    ESOCKETTIMEDOUT".
!

at ChildProcess.exithandler (child_process.js:271:12)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:927:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
killed: false,
code: 1,
signal: null,
cmd: 'heroku plugins:install heroku-cli-deploy' }
Execution complete

到目前为止我做了什么?

  1. 安装 Heroku 工具带 [成功]
  2. 创建herkou免费账号[成功]
  3. 登录到我的heroku帐户[成功]
  4. 运行 'jhipster heroku' 命令 [失败] [错误如上所述]

我在Windows 7 64bit上。jhipster 4.9.0 我已经使用 jhipster 服务器命令等单独生成了我的应用程序。

请注意:我的互联网运行良好。

任何形式的帮助或建议表示赞赏。我被卡住了,请帮忙。我以前从未使用过heroku。

4

0 回答 0