Error not found: git while installing npm package on windows

I am trying to install this package via npm. npm install bigwheel

on windows using webstorm IDE.

I'm going to

"Error: not found: git" "This is most likely not a problem with npm itself. Please check if git is installed and if you have a path."

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

+5


source to share


2 answers


Indicate where git is installed on your machine. for example C:\Program Files\Git\cmd

and add this to your variable PATH

in environment variables.

To add a path, follow these steps:

  • Right click on on this PC or My Computer and select Properties
  • Select Advanced System Settings
  • Select Environment Variables
  • In System Variables find the PATH variable
  • Select Edit and add this path
  • Click OK and restart command prompt

Run the following command from a new command line after adding:



git --version

      

It should look something like this:

git version 2.9.0.windows.1

      

After following these steps, try installing the npm package and see if the issue is resolved.

+20


source


On windows, environment ... there are 2 problems here: Installing SourceTree doesn't mean git.exe is installed, so you need to install the latest version first Then go to this url ( https://github.com/npm/npm/ wiki / Troubleshooting ) and reinstall npm in the directory where I have the project that fixed the problem for me



0


source







All Articles