Adam
Adam

Reputation: 1242

Error not found: git when install npm package on windows

I'm trying to install this package through npm npm install bigwheel on windows using webstorm IDE.

I'm getting

"Error: not found: git" "This is most likely not a problme with npm itself. Please check if you have git installed and in yout Path"

I have https://git-for-windows.github.io/ installed, how do i check the path and fix this error?

Upvotes: 7

Views: 33232

Answers (3)

Enes Özer
Enes Özer

Reputation: 17

You can try git cmd. I try and work it

Upvotes: 0

Uday Shivamurthy
Uday Shivamurthy

Reputation: 11

In Windows, environment...there are 2 issues here: Installation SourceTree does not mean git.exe is installed, so you need to install latest version first Then go this url (https://github.com/npm/npm/wiki/Troubleshooting) and doing an npm reinstall in the directory where I have my project fixed the problem for me

Upvotes: 0

kk.
kk.

Reputation: 3945

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.

Upvotes: 22

Related Questions