[8EAP] Does anyone have Bower integration working?
With EAP8 bringing Bower integration, I was looking at using it for my javascript dependencies. However, I can't seem to get it to work correctly.
I'm using EAP 134.1456 on Windows 8. Settings as follows:
Node Interpreter: C:\Program Files\nodejs\node.exe
Bower Executable: (Have tried all the following:)
- C:\Users\Allen\AppData\Roaming\npm\bower
- C:\Users\Allen\AppData\Roaming\npm\bower.cmd
- bower
- C:\Users\Allen\AppData\Roaming\npm\node_modules\bower\bin\bower
PHPStorm always reports: Cannot fetch bower version by running 'bower --version' command
If I open the console tab in PHPStorm and type 'bower --version', it gives '1.3.1', so bower appears to be working correctly and is in my path.
I've had a quick google around and searched the forums, youtrack and r/phpstorm, and while I can see a number of issues in YouTrack against bower, I can't see anyone with the same issue, or who definitely has it working.
Obviously with this being an EAP this may be a bug, but I want to check I'm not doing anything blatantly wrong first.
Thanks in advance
Please sign in to leave a comment.
Hi there,
Does not work for me either (Windows 7).
I'm having suspicion (nothing more but suspicion) that they (devs) have coded to execute 'bower --version' command literally (as is), which would NOT work on Windows platform when creating processes (same behaviour as in External Tools / File Watcher) but WILL work on Linux/Mac. On Windows you have to point to exact file name (at very least it should be "bower.cmd"). When you executing "bower --version" in console on Windows, the DOS/command shell (cmd.exe) searches for you for "bower.exe", "bower.com", "bower.bat", "bower.cmd" and so on (based on contents of standard PATHEXT environment variable, which by default has ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC")
P.S.
The correct path to the bower executable on Windows should point to .cmd file, so it should be "C:\Users\Allen\AppData\Roaming\npm\bower.cmd"
P.P.S.
I would just submit new Bug ticket to the Issue Tracker highlighting that you are on Windows (and attach your idea.log -- at very least from the last IDE session where you are trying to use bower).