Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 执行/usr/bin ls remote-h-t时出错ssh://git@github.com/xxxx/xxxx.git,同时推送到heroku_Javascript_Node.js_Express_Heroku_Heroku Nodejs - Fatal编程技术网

Javascript 执行/usr/bin ls remote-h-t时出错ssh://git@github.com/xxxx/xxxx.git,同时推送到heroku

Javascript 执行/usr/bin ls remote-h-t时出错ssh://git@github.com/xxxx/xxxx.git,同时推送到heroku,javascript,node.js,express,heroku,heroku-nodejs,Javascript,Node.js,Express,Heroku,Heroku Nodejs,我有一个nodejs应用程序。我正试图把它推给heroku,并在heroku中执行它。在通过heroku CLI离开时,我面临一个问题。请帮忙。谢谢 我知道这可以在本地系统中通过使用git config--global url.“https://”来解决。而不是ssh://,但是在部署到Heroku时如何解决它呢 remote: Compressing source files... done. remote: Building source: remote: remote: ----->

我有一个nodejs应用程序。我正试图把它推给heroku,并在heroku中执行它。在通过heroku CLI离开时,我面临一个问题。请帮忙。谢谢 我知道这可以在本地系统中通过使用git config--global url.“https://”来解决。而不是ssh://,但是在部署到Heroku时如何解决它呢

remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:        NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 12.x...
remote:        Downloading and installing node 12.16.2...
remote:        Using default npm version: 6.14.4
remote:
remote: -----> Installing dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        npm ERR! Error while executing:
remote:        npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/xxxx/xxx.git
remote:        npm ERR!
remote:        npm ERR! Host key verification failed.
remote:        npm ERR! fatal: Could not read from remote repository.
remote:        npm ERR!
remote:        npm ERR! Please make sure you have the correct access rights
remote:        npm ERR! and the repository exists.
remote:        npm ERR!
remote:        npm ERR! exited with error code: 128
remote:
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /tmp/npmcache.FA1w0/_logs/2020-04-14T06_41_51_429Z-debug.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common issues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote:        Some possible problems:
remote:
remote:        - Node version not specified in package.json
remote:          https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote:        Love,
remote:        Heroku
remote:

只是遇到了同样的问题。仍然不知道如何正确地修复它。
但快速修复方法是手动替换
ssh://git@github.com/xxxx/xxx.git
with
https://github.com/xxxx/xxx.git
package lock.json文件中的

也遇到了同样的问题。仍然不知道如何正确地修复它。 但快速修复方法是手动替换
ssh://git@github.com/xxxx/xxx.git
with
https://github.com/xxxx/xxx.git
package lock.json
文件中的