Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
187
rated 0 times [  188] [ 1]  / answers: 1 / hits: 16508  / 11 Years ago, tue, december 3, 2013, 12:00:00

I'm trying to install packages using Bower.



Without a .bowerrc file, it works. For example, bower install angular#1.0.6 will install nicely inside ./bower_components.



If there is a .bowerrc with { 'directory' : 'public/javascripts/vendor' }, bower install angular#1.0.6 will not work. Actually, the output of that command is nothing. It simply prints a blank line, then the next line is my terminal prompt. The package is not installed anywhere.



However, if there is an empty .bowerrc file, it will install the package inside ./bower_components.



Why is it not installing the packages and how can I fix it? (so they will install)



Additional info:



No bower command works. bower will fail similarly. bower help too. In fact, bower anything will too.


More From » bower

 Answers
4

I just solved this. I uninstalled and reinstalled bower, and now it works. :S



sudo npm rm -g bower



sudo npm install bower -g



Now everything works fine!


[#73935] Sunday, December 1, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
margaritakristinak

Total Points: 502
Total Questions: 127
Total Answers: 98

Location: England
Member since Mon, May 17, 2021
3 Years ago
;