Bower返回错误:401的EHTTP状态代码

时间:2018-12-06 11:37:25

标签: npm bower bower-install bower-register

运行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"
  }
}

0 个答案:

没有答案