我有一个内部凉亭注册表。
我的.bowerrc
看起来像这样:
{
"resolvers": [
"bower-art-resolver"
],
"registry": //internal registry address
}
当我尝试运行bower install
时,我得到:
bower [31merror [39m Cannot read property 'registry' of undefined
[33m
Stack trace:
[39mTypeError: Cannot read property 'registry' of undefined
at Function.ArtifactoryResolver.extractArtifactoryRegistry
为什么会这样?
答案 0 :(得分:0)
Artifactory升级(版本4.8.0)后我遇到了同样的问题,用npm重新安装bower-art-resolver解决了这个问题。