-2

I was tried to make a new workspace for Angular2 project. I was creating this workspace on Node js command prompt. I have tried many times but get the same error.

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

Please let me know how to get rid of this error.

dunni
  • 43,386
  • 10
  • 104
  • 99
S.Sehgal
  • 59
  • 2
  • 10
  • 3
    Possible duplicate of ['git' is not recognized as an internal or external command](https://stackoverflow.com/questions/4492979/git-is-not-recognized-as-an-internal-or-external-command) – Bill P Aug 12 '19 at 07:07
  • @BillP Could you please tell me the steps that I need to follow? – S.Sehgal Aug 12 '19 at 07:08

2 Answers2

2

This is not an angular error, but a git error.

There may be two causes making this error:

  1. Git is not installed on your system. Which, in case, install it from here.
  2. Git is installed on your system, but the path to the program is not set on your system. You can confirm that it is installed, and then add the path variable to it by going to System Properties -> Advanced system settings -> Environment Variables -> system variables -> PATH

and then add the following path: C:\Program Files\Git\cmd

Hope this solves your issue.

Himanshu Mittal
  • 584
  • 1
  • 6
  • 21
0

It has nothing to do with angular or npm. install git in your system it is not installed properly.

subhashish negi
  • 174
  • 1
  • 9