问题描述
我的 Heroku 应用程序在当天早些时候完美部署。但我不知道发生了什么,现在显示部署失败。我的应用程序在我的本地主机上完美运行,但 heroku 仍然显示问题,而我必须对 heroku 的任何配置文件进行任何更改。
当我运行时,git push heroku master
-----> Building on the Heroku-18 stack
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONfig_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 14.x...
Downloading and installing node 14.16.0...
Using default npm version: 6.14.11
-----> Restoring cache
- node_modules
-----> Installing dependencies
Installing node modules
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/lokesh/quantize.git
npm ERR!
npm ERR! Host key verification Failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.VkM50/_logs/2021-03-15T03_40_32_987Z-debug.log
-----> 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:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
love,Heroku
! Push rejected,Failed to compile Node.js app.
! Push Failed
请帮助我,这将是一个很大的帮助。 谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)