首页 > 解决方案 > Heroku 部署失败...我不明白发生了什么

问题描述

我的 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

请帮助我,这将是一个很大的帮助。谢谢你。

标签: node.jsherokudeploymentweb-deploymentheroku-cli

解决方案


推荐阅读