4

While I'm creating myApp and running this command:

ionic start myApp tabs

in cmd prompt, I'm getting this error:

[ERROR] Git CLI not found on your PATH. It must be installed to connect this app to Ionic.

Andrew Morton
  • 21,016
  • 8
  • 48
  • 69
Uday Tej
  • 101
  • 1
  • 6
  • It's telling you that you need to install the Git CLI. – Andrew Morton Sep 19 '17 at 10:53
  • How can we check if GIT is installed or not in command prompt @AndrewMorton.Becuase GIT is already installed in my machine – Uday Tej Sep 19 '17 at 11:01
  • Enter `PATH`. You should see "C:\Program Files\Git\cmd" (or perhaps the equivalent for your computer's UI language) somewhere in there. If not, [Adding directory to PATH Environment Variable in Windows](https://stackoverflow.com/q/9546324/1115360). – Andrew Morton Sep 19 '17 at 11:13
  • I do not have git in the above path(C:\Program Files\Git\cmd") , i have in C:\Program Files (x86)\Git\bin\git.exe ,I have added this path but still same issue .can you please help me @AndrewMorton – Uday Tej Sep 19 '17 at 11:38
  • I suggest that you remove that path and re-install from [Git downloads](https://git-scm.com/downloads). – Andrew Morton Sep 19 '17 at 11:46

3 Answers3

2

I have tried all solution which all wrote in this page. But did not work on my system. So I tried add as environment variable to --> "C:\Program Files\Git\git-cmd.exe" and then it is worked.

If someone still looking for it you can try it.

Alihan Kayhan
  • 162
  • 10
1

Download and install Git. In my case, Git 2.14 did the magic. And create a new project

Crystal
  • 318
  • 2
  • 9
1

I had the same problem and to fix it you should follow these steps:

  1. Close windows cmd window.
  2. Download git here: Git Official Website
  3. Choose this option on installation : Setup Option Image
  4. Complete Git installation.

Now you can start ionic using your command and the error should not occur again. It worked for me and I hope it will work for you guys. Let me know if it was helpful !