【问题标题】:Bower : can't install dependenciesBower:无法安装依赖项
【发布时间】:2016-04-25 23:50:58
【问题描述】:

当我尝试安装 angular-sails 时出现错误:

λ bower install
bower angular-sails#*       not-cached https://github.com/kyjan/angular-sails.git#*
bower angular-sails#*          resolve https://github.com/kyjan/angular-sails.git#*
bower angular-mocks#~1.5.0  not-cached https://github.com/angular/bower-angular-mocks.git#~1.5.0
bower angular-mocks#~1.5.0     resolve https://github.com/angular/bower-angular-mocks.git#~1.5.0
bower angular-scenario#~1.5.0       not-cached https://github.com/angular/bower-angular-scenario.git#~1.5.0
bower angular-scenario#~1.5.0          resolve https://github.com/angular/bower-angular-scenario.git#~1.5.0
bower angular-sails#*                  ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/kyjan/angular-sails.git", exit code of #128

【问题讨论】:

    标签: node.js npm bower bower-install


    【解决方案1】:

    检查您的计算机上的端口 22 是否被阻止,然后再次尝试安装。

    另外,您可以尝试以下方法:

    git config --global url."https://".insteadOf git://
    

    告诉 git 使用 HTTPS 而不是 GIT,这样我就可以安装 npm 依赖项了。

    【讨论】:

    • 你复制粘贴我写的内容。
    • 我使用它但没有任何改变
    • 您不会看到任何变化。但是下次运行bower install 时,它将使用https:// 而不是git://
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-26
    • 1970-01-01
    • 2016-02-06
    • 2020-05-26
    • 2021-05-29
    • 2018-09-11
    相关资源
    最近更新 更多