Heroku创建命令产生"ENOENT"错误

nic*_*ndo 6 javascript git heroku command-line-interface node.js

当试图调用"heroku create"时,我得到以下结果:

Creating app... done, stack is cedar-14
      ENOENT: spawn git ENOENT
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

nic*_*ndo 10

事实证明应用程序正在创建中,但是当我尝试使用命令"git push heroku master"推送我的本地存储库时,我没有使用git远程设置.

通过运行解决:git remote add heroku git@heroku.com:your-app-name-here.git