Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Create Command Yielding "ENOENT" Error [closed]

When attempting 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?

like image 285
nicktendo Avatar asked Mar 15 '16 02:03

nicktendo


2 Answers

Turns out the application was being created fine, but when I attempted to push my local repository using the command "git push heroku master" I didn't have a git remote setup.

Solved by running: git remote add heroku [email protected]:your-app-name-here.git

like image 87
nicktendo Avatar answered Sep 30 '22 08:09

nicktendo


I was also facing same problem while deploying sample node js application on heroku cloud by following the heroku tutorial. I was trying to run the "heroku create" and "git push heroku master" from Window's command prompt and it was not working due to above and other reasons.

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

like image 22
skvp Avatar answered Sep 30 '22 08:09

skvp