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?
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?
This happens because your command prompt can't access git. I am sure you use git bash for version control.
You can avoid this if you run heroku create in your git bash.
Above problem will be solve by typing following command in the command Prompt.
heroku login -i
This problem will most probably happen because you are using windows as your operating system. So in windows you might be using GitBash for Git and command prompt for Heroku.
Just try checking out the git version from command line in your directory, most probably the output will be 'git' not recognized.
So now if you use Gitbash for git commands, this is where the problem lies because GitBash does not recognize Heroku.
When you enter the command Heroku create in Command line it creates the app but instead of returning a link of your project, it yields an error message like this - 'ENOENT: spawn git ENOENT',
If you try to enter Heroku commands in GitBash they'll also not be recognized.
Hence the only solution to this is try making the command line recognize Git by re-installing Git and choosing Command Line as its terminal instead of Bash .This might solve your problem.
if your have cloned some project and trying to upload it, at this time it can show this type error. so just delete the original git repo (ex .git folder) and try again command
heroku create your_app_name
and than create new git repo