当我尝试安装 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
最佳答案
检查您的计算机上的端口 22 是否被阻止,然后再次尝试安装。
此外,您可以尝试以下操作:
git config --global url."https://".insteadOf git://
告诉 git 使用 HTTPS 而不是 GIT,这对我来说可以安装 npm 依赖项。
关于node.js - 鲍尔 : can't install dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36853086/