Heroku + git = ENOENT:spawn git ENOENT [英] Heroku + git = ENOENT: spawn git ENOENT

查看:911
本文介绍了Heroku + git = ENOENT:spawn git ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ubuntu 17.04的新手。
因此,我在使用git和Heroku时遇到了一些麻烦。



当我运行 $ heroku create 或试图克隆在Windows上创建的令人兴奋的存储库/应用程序 heroku git:clone -a appname 我得到错误。 ENOENT:spawn git ENOENT

我做了一些搜索,似乎是没有安装git,或者PATH错误或设置不正确。但我已经安装了git $ sudo apt-get install git


$ b $ p $ git - 版本
git版本2.11.0



$ git --exec-path
/ usr / lib / git-core



我使用snap作为文档状态来安装Heroku-CLI。 $ sudo snap install heroku



$ which heroku
/ snap / bin / heroku



$ heroku --version
heroku-cli / 6.12.0(linux-x64 )node-v7.10.0



任何人都可以帮我吗?感谢。

解决方案

我删除了Heroku-CLI版本并使用snap安装。

I'm new to Ubuntu 17.04. So I'm having some trouble with git and Heroku.

When I run $ heroku create or trying to clone an exciting repository/app created on Windows heroku git:clone -a appname I get the error. ENOENT: spawn git ENOENT.

I've done some searching it seems to be that either git isn't installed or the PATH is wrong or not set properly. But I have installed git $ sudo apt-get install git

$ git --version git version 2.11.0

$ git --exec-path /usr/lib/git-core

And I installed Heroku-CLI using snap as their documentation states. $ sudo snap install heroku

$ which heroku /snap/bin/heroku

$ heroku --version heroku-cli/6.12.0 (linux-x64) node-v7.10.0

Can anyone help me out? Thanks.

解决方案

I removed the Heroku-CLI version and installed using snap.

这篇关于Heroku + git = ENOENT:spawn git ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆