1

Im working on a project that requires bower components from Git and its not being installed even after i having GIT in my system. I have also set the path to git/cmd.

The configs are : Windows7; GIT is 2.7.0.windows1 and the Path is programfiles/git/cmd

I have also tried the various solutions given here in Stackoverflow but nothing solved my problem. One interesting observation i made is there was no git in user/appdata

npm is also installed in the system. Kindly suggest me a solution to this issue.

git not in the path , the git terminal

Panicker
  • 37
  • 7
  • "In my system"? Which system? Which OS? which git version is installed? What is your $PATH (or %PATH% on Windows) ? – VonC Feb 11 '16 at 07:30
  • @VonC; thanks for pointing out that i was vauge. Windows7; version of git is 2.7.0.windows1 and the Path is programfiles/git/cmd – Panicker Feb 11 '16 at 09:29
  • Does your user path has the git path in it, as in http://stackoverflow.com/a/23179102/6309? – VonC Feb 11 '16 at 09:50

2 Answers2

1

Bower clearly states in its "Windows Users" section:

To use Bower on Windows, you must install Git for Windows correctly. Be sure to check the options shown below:

https://cloud.githubusercontent.com/assets/10702007/10532690/d2e8991a-7386-11e5-9a57-613c7f92e84e.png

https://cloud.githubusercontent.com/assets/10702007/10532694/dbe8857a-7386-11e5-9bd0-367e97644403.png

This issue confirms it:

I've encountered the same issue before,
I just re-install everything and followed these instructions.

Firstly I installed Git then install bower , it fixes my problem.

Or, at the very least, before your bower command:

set PATH=%PATH%;C:\Program Files (x86)\Git\bin;
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

I just encountered the same problem.. and after searching and trying out some answers given by many here in stackoverflow and youtube.. this one thing worked for me on windows..

  1. I reinstalled Git.. then..check the third option

  2. after installing.. right click on your project folder and select "Git Bash Here".. and it worked like a charm..

  3. check also with window cmd.. and it finds Git PATH..

hope this helps.