How to fix bower ECMDERR

前端 未结 13 2218
执念已碎
执念已碎 2020-11-30 16:30

I\'m using \"yeoman\" and \"bower\" on windows 7 but got the following error when I create the app

yo webapp

The error is

         


        
相关标签:
13条回答
  • 2020-11-30 16:57

    In my case it was the antivirus' firewall preventing bower to connect with github. I hadn't realized the antivirus was asking through a windows whether i wanted to allow git to perform connection or not.

    I allowed it and it worked like a charm :)

    0 讨论(0)
  • 2020-11-30 17:01

    Instead of struggling with this, just manually download it and then do a bower install from local folder instead.

    0 讨论(0)
  • 2020-11-30 17:02

    For me updating git to the newest version helped.

    0 讨论(0)
  • 2020-11-30 17:05

    I work with VS 2015 and have the NoGit package installed. Updated it to the 0.1.0 and it fixed the problem.

    Hope this might help someone.

    0 讨论(0)
  • 2020-11-30 17:06

    I had the same problem and the answer above didn't work for me. But I found an other one. You can have a problem with your proxy. If you are behind a proxy you have to do theses steps :

    put this in .bowerrc to get rid of the err ETIMEDOUT :

    {
        "directory": "app/bower_components",
        "proxy": "http://PROXYSERVER:PORT",
        "https-proxy": "https://PROXYSERVER:PORT",
        "strict-ssl": false
    }
    

    And this one to get rid of ECMDERR :

    git config --global http.proxy http://USER:PASSWORD@PROXYSERVER:PORT
    

    it works for me.

    P.S : sorry for my english mistakes I'm french^^

    0 讨论(0)
  • 2020-11-30 17:10

    Following commands work for me

    npm cache clean

    bower cache clean

    and then

    bower install

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