node.js - Heroku CLI commands are not recognized after installation -
i have installed heroku cli , git. after installation, restarted command prompt. when run git commands, recognized fine. when type heroku commands such heroku version
, not recognized.
so set path variable point heroku installation. now, heroku commands working git commands have become unrecognized.
what actual problem?
here cmd prompt content.
microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation. 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' not recognized internal or external command, operable program or batch file. c:\users\deva 5>heroku login 'heroku' not recognized 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 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' not recognized internal or external command, operable program or batch file.
set path="c:\program files\heroku\bin"
by doing that, replaced path variable only contain path. broke else.
what append or prepend new path path variable, e.g. this:
set path=%path%;c:\program files\heroku\bin
the permanent solution edit windows include path heroku executables default. see question on superuser more information , instructions: what path , other environment variables, , how can set or use them?
Comments
Post a Comment