What is causing 'grunt serve' to throw 'No Bower components found'?

后端 未结 9 2468
时光取名叫无心
时光取名叫无心 2020-12-25 09:55

I am starting out angular app with angular-fullstack in my Windows 7 box. I installed bunch of npm packages with -g options, including grunt-bower-install. I created the app

相关标签:
9条回答
  • 2020-12-25 10:08

    npm install -g bower doesn't install bower components, you should run as well bower install to have all bower's components installed and then run grunt serve. It should work fine

    0 讨论(0)
  • 2020-12-25 10:10
    npm install -g bower
    bower install
    grunt serve
    

    It's worked too

    0 讨论(0)
  • 2020-12-25 10:12

    In my case, I added sudo for it to work. So, I ran sudo npm install -g bowerand then bower install. grunt serve then worked when I ran it.

    0 讨论(0)
  • 2020-12-25 10:18

    Try to do bower install. If its failing saying not able to connect to git then you can change repo pointing location by simply running below command

    $ git config --global url.https://github.com/.insteadOf git://github.com/ 
    

    This will ensure that you will be downloaded over https instead of git if its causing orginasation firewall to block it.

    0 讨论(0)
  • 2020-12-25 10:21
    npm install -g bower
    bower install
    grunt serve
    

    worked for me ...

    0 讨论(0)
  • 2020-12-25 10:25

    I had the same issue, here's what worked in my case:

    1. installed ruby and compass (yeoman needs these)
    2. verified that path to Ruby bin folder is added to %PATH%
    3. installed Git
    4. restarted cmd window and ran "bower install" in the app folder

    After that, grunt serve command worked perfectly. Note: maybe installing Git and running bower install would suffice in your case.

    0 讨论(0)
提交回复
热议问题