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:
- Right click on This PC or My Computer & select Properties
- Select Advanced System Settings
- Select Environment Variables
- In System Variables locate PATH variable
- Select Edit and append this path
- 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.