无法读取属性`registry`凉亭

时间:2016-01-06 13:27:23

标签: bower

我有一个内部凉亭注册表。 我的.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 

为什么会这样?

1 个答案:

答案 0 :(得分:0)

Artifactory升级(版本4.8.0)后我遇到了同样的问题,用npm重新安装bower-art-resolver解决了这个问题。