凉亭不工作(升级到macOS sierra后)

时间:2016-10-29 04:08:25

标签: bower

作为一个例子,我想安装砌体(来自http://masonry.desandro.com),所以我输入:

bower install masonry --save

我得到了

bower invalid-meta  The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower not-cached    https://github.com/Aspera/angular-storage.git#~0.5.0
bower resolve       https://github.com/Aspera/angular-storage.git#~0.5.0
bower not-cached    https://github.com/desandro/masonry.git#*
bower resolve       https://github.com/desandro/masonry.git#*
Username for 'https://github.com': bower checkout      masonry#v4.1.1
bower resolved      https://github.com/desandro/masonry.git#4.1.1
bower not-cached    https://github.com/desandro/get-size.git#^2.0.2
bower resolve       https://github.com/desandro/get-size.git#^2.0.2
bower not-cached    https://github.com/metafizzy/outlayer.git#^2.1.0
bower resolve       https://github.com/metafizzy/outlayer.git#^2.1.0
bower checkout      get-size#v2.0.2
bower checkout      outlayer#v2.1.0
bower resolved      https://github.com/desandro/get-size.git#2.0.2
bower resolved      https://github.com/metafizzy/outlayer.git#2.1.0
bower not-cached    https://github.com/metafizzy/fizzy-ui-utils.git#^2.0.0
bower resolve       https://github.com/metafizzy/fizzy-ui-utils.git#^2.0.0
bower not-cached    https://github.com/metafizzy/ev-emitter.git#^1.0.0
bower resolve       https://github.com/metafizzy/ev-emitter.git#^1.0.0
bower checkout      ev-emitter#v1.0.3
bower checkout      fizzy-ui-utils#v2.0.3
bower resolved      https://github.com/metafizzy/ev-emitter.git#1.0.3
bower resolved      https://github.com/metafizzy/fizzy-ui-utils.git#2.0.3
bower not-cached    https://github.com/desandro/matches-selector.git#~2.0.0
bower resolve       https://github.com/desandro/matches-selector.git#~2.0.0
bower checkout      desandro-matches-selector#v2.0.1
bower resolved      https://github.com/desandro/matches-selector.git#2.0.1

然后它要求我输入密码:

Password for 'https://github.com': 
bower ECMDERR       Failed to execute "git ls-remote --tags --heads https://github.com/Aspera/angular-storage.git", exit code of #128 remote: Repository not found. fatal: Authentication failed for 'https://github.com/Aspera/angular-storage.git/'

Additional error details:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/Aspera/angular-storage.git/'

什么!* $#!正在这里我不想要角度存储 我的密码有效但它没有给我机会输入我的用户名。 我重新安装了凉亭,但它仍然搞砸了。在我愚蠢地让macOS Sierra进门之前没事。

1 个答案:

答案 0 :(得分:0)

好的,问题是: bower.json在依赖列表中包含“angular-storage”:“~0.5.0”,但我删除了bower-components的角度存储,转而支持a0-angular-storage。 提示bower不稳定的行为,所以很明显当从bower_components中删除项目时,还必须从bower.json中删除相关的依赖项。 bower.json也有这条线: “私人”:是的 我删除了,现在它不再要求我登录。