Error not found: git when install npm package on windows

Please find at which location on your machine git is installed. e.g. C:\Program Files\Git\cmd and append this to your PATH variable in environment variables.

To append to path please follow below steps:

  1. Right click on This PC or My Computer & select Properties
  2. Select Advanced System Settings
  3. Select Environment Variables
  4. In System Variables locate PATH variable
  5. Select Edit and append this path
  6. Click OK & restart command prompt

Execute below command from new command prompt after appending this:

git --version

It should display something like:

git version 2.9.0.windows.1

After following these steps, try to install npm package and see whether the problem is resolved.

Tags:

Git

Window

Npm