【发布时间】:2018-01-01 05:15:45
【问题描述】:
我已经安装了 Heroku CLI 和 git。安装后,我重新启动了命令提示符。当我运行 git 命令时,可以很好地识别这些命令。但是当我输入诸如heroku version 之类的 Heroku 命令时,它们无法识别。
所以我将路径变量设置为指向 Heroku 安装。现在,Heroku 命令正在运行,但 git 命令已无法识别。
真正的问题是什么?
这里是cmd提示内容。
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Deva 5>git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.email=****
user.name=****
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
gui.wmstate=normal
gui.geometry=888x427+150+150 171 192
C:\Users\Deva 5>heroku version
'heroku' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Deva 5>heroku login
'heroku' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Deva 5>set path="C:\Program Files\Heroku\bin"
C:\Users\Deva 5>heroku version
heroku-cli: Updating to 6.13.1-7bcaf87... 11.6 MB/11.6 MB
heroku-cli/6.13.1-7bcaf87 (windows-x64) node-v8.2.1
C:\Users\Deva 5>git config --list
'git' is not recognized as an internal or external command,
operable program or batch file.
【问题讨论】:
标签: node.js windows git heroku heroku-toolbelt