Issue installing bower on windows
Asked Answered
G

3

18

I'm using Windows 7 64bit and I install Bower with

npm install -g bower

It seems to install correctly.

npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
C:\Program Files (x86)\Git\local\bower -> C:\Program Files (x86)\Git\local\node_
modules\bower\bin\bower
[email protected] C:\Program Files (x86)\Git\local\node_modules\bower
...

But bower is not working:

$bower
sh.exe": bower: command not found

$bower -v
sh.exe": bower: command not found

What could be wrong?

Gabbert answered 13/5, 2014 at 17:59 Comment(1)
Check if C:\Program Files (x86)\Git\local is added to your Path Environment Variable.Amaras
A
8

Check if C:\Program Files (x86)\Git\local is added to your Path Environment Variable.

Amaras answered 15/5, 2014 at 0:4 Comment(0)
C
15

Same problem but for me I had to add the Path Environment Variable that pointed to the AppData/Roming/ folder. I have no idea why node.js would install npm in the Roming folder. If I didn't have hidden folders turned on we never would have found it.

C:\Users\me\AppData\Roaming\npm;

Then npm works from Node.js command prompt, and bower works from GitBash.

Chat answered 3/9, 2014 at 21:2 Comment(1)
It's explained in the troubleshooting of Node. github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windowsScrimshaw
A
8

Check if C:\Program Files (x86)\Git\local is added to your Path Environment Variable.

Amaras answered 15/5, 2014 at 0:4 Comment(0)
E
0

Check your version of node, I was running on v0.10.15 then updated to v0.10.35 and that fixed the issue for me.

Embroider answered 20/1, 2015 at 12:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.