Heroku Create Team Quenching "ENOENT" Error

When I try to call "heroku create", I get the following results:

Creating app... done, stack is cedar-14 ENOENT: spawn git ENOENT 

How can I fix this error?

+6
source share
5 answers

It turns out that the application was created in order, but when I tried to push my local repository using the "git push heroku master" command, I did not have a remote git installation.

Solved by running: git remote add heroku git @ heroku.com: your-app-name-here.git

+9
source

I also ran into the same problem when deploying the node js sample application in the heroku cloud following the heroku tutorial. I tried to run "heroku create" and "git push heroku master" from the command line of the window, and it did not work due to the above and other reasons.

Things started working for me when I did the same from a Gits bash session. I started git bash and ran the above commands from the git bash command line.

+4
source

This is because your command line cannot access git. I am sure that you are using git bash for version control.
You can avoid this if you run heroku create in your git bash.

+1
source

I had the same problem. I think you all have done the following instructions:

 git clone https://some reposit cd node-js-getting-started 

And you are in this directory.

My problem was resolved when I went up in the directory above and tried the following command:

 heroku create 
0
source

This problem is likely to happen because you are using Windows as your operating system. So on Windows, you can use GitBash for Git and the command line for Heroku.
Just try checking the git version from the command line in your directory, most likely the result will be 'git' not recognized.
So now, if you use Gitbash for git commands, this is the problem, because GitBash does not recognize Heroku.
When you enter the Heroku create command on the command line, it creates the application, but instead of returning a link to your project, it gives an error message like this: 'ENOENT: spawn git ENOENT',
If you try to enter Heroku commands in GitBash, they will not be recognized either.

Therefore, the only solution is to try to recognize Git from the command line by reinstalling Git and choosing Command Line as the terminal instead of Bash . This may solve your problem.

0
source

Source: https://habr.com/ru/post/1245054/


All Articles