"'git' is not recognized as an internal or external command, operable program or batch file."

10,378
  1. Check whether GIT is installed on your system. If not installed then install Git by downloading from below URL and install

https://git-scm.com/

  1. Close your command prompt or visual studio code or any editor you are using and reopen it.
  2. Create new angular application and it will work as expected.
Share:
10,378
Author by

Faiyaz Sayeed

Updated on June 16, 2022

Comments

  • Faiyaz Sayeed 12 months

    Env Detail: Angular CLI: 6.1.3 Node: 8.11.3 npm version: 5.6.0

    When I am trying to create an Angular project by executing ng new Project-name I am getting

    'git' is not recognized as an internal or external command, operable program or batch file.
    

    instead of 'project name successfully created'

    command prompt

    • DeborahK
      DeborahK almost 5 years
      Have you seen this: github.com/nodejs/help/issues/786
    • Faiyaz Sayeed almost 5 years
      how to add Git to PATH environment variable?Can u help me [email protected]
    • Mustafa almost 5 years
      @FaiyazSayeed try uninstalling Git and reinstalling it. I recall it had an option in the installation process to add it to PATH.
    • Jayendran
      Jayendran almost 5 years
      @FaiyazSayeed try chambaud.com/2013/07/08/…
    • Faiyaz Sayeed almost 5 years
      thanks all,issue is resolved
  • Erik Philips
    Erik Philips over 1 year
    Why would GIT be required to create a new app?