【问题标题】:Bower hangs after checkout step of Install command.Bower 在安装命令的签出步骤后挂起。
【发布时间】:2014-06-08 19:26:30
【问题描述】:

我是 github 企业用户,我正在使用 bower 指向一个内部存储库来管理依赖项。

我已经建立了一个 repo 并在根目录中包含了一个 bower.json 文件。它看起来像这样:

{
  "name": "Axis",
  "main": "Axis.js",
  "version": "0.0.0",
  "authors": [
    "Nick Randall"
  ],
  "description": "Chart Axis",
  "keywords": [
    "d3",
    "d3.chart",
    "axis"
  ],
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "d3": "~3.4.6",
    "d3.chart": "~0.2.0",
    "lodash": "~2.4.1"
  }
}

我正在尝试使用“bower install Org/Axis”将上面的 repo 作为依赖项安装在一个新项目中,并且该过程在“Checkout”步骤之后挂起。我做错了什么还是这是一个错误?

我的 .bowerrc 文件如下所示:

{
  "shorthand-resolver": "https://git.company.com/{{owner}}/{{package}}'.git"
}

这是我从命令行得到的响应:

bower Axis#*           not-cached https://git.company.com/Org/Axis.git#*
bower Axis#*           resolve https://git.company.com/Org/Axis.git#*
bower Axis#*           checkout v1.1.1

之后它就挂在那里并且永远不会继续。

【问题讨论】:

    标签: bower bower-install github-enterprise


    【解决方案1】:

    事实证明这是一个愚蠢的错误。我的.bowerrc 放错了位置。一旦我把它移到我的项目的根目录,一切都开始工作了。我希望这对其他人有帮助!

    【讨论】:

      【解决方案2】:

      大约一年前,由于 unzip 版本的问题,导致凉亭挂起的问题。要查看您的挂起是否有相同的原因,您可以尝试单独安装其中一个依赖项。如果单个安装没有挂起,您可能会遇到与以前相同的问题——它发生在节点版本和 Bower 版本的某些组合存在的情况下。要尝试单独加载,请考虑以下示例:

      bower install https://github.com/lodash/lodash.git

      【讨论】:

        猜你喜欢
        • 2014-07-21
        • 1970-01-01
        • 2016-10-05
        • 2013-03-28
        • 2023-01-21
        • 1970-01-01
        • 1970-01-01
        • 2015-03-03
        • 2014-02-13
        相关资源
        最近更新 更多