运行bower install
时出现错误提示。问题似乎是.bowerrc文件中有一个代理。如果我正在使用没有用户名和密码的其他位置,则可以下载该库。请验证配置是否正确或我缺少什么。
bower invalid-meta for:C:\testing\bower.json
bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower lib#* not-cached nexus/repo/path/file.tgz#*
bower lib#* resolve nexus/repo/path/file.tgz#*
bower lib#* download nexus/repo/path/file.tgz
bower lib#* EHTTP Status code of 401
bower.json配置:
{
"name": "testing",
"version": "1.5.0",
"dependencies": {
"lib": "nexus/repo/path/file.tgz"
}
}
.bowerrc配置:
{
"directory": "",
"registry": {
"search": [
"nexus/repo/path"
]
},
"resolvers": [
"bower-nexus3-resolver"
],
"nexus": {
"username": "test",
"password": "test"
}
}