【问题标题】:npm bower install fails (hangs at same spot)npm bower install 失败(挂在同一位置)
【发布时间】:2015-04-27 20:54:29
【问题描述】:

几天来,我一直在尝试反复安装 Bower。安装挂在同一点 -

 npm verb about to build C:\Users\spjbd\AppData\Roaming\npm\node_modules\bower\no
de_modules\insight
npm info build C:\Users\spjbd\AppData\Roaming\npm\node_modules\bower\node_module
s\insight
npm verb linkStuff [ true,
npm verb linkStuff   'C:\\Users\\spjbd\\AppData\\Roaming\\npm\\node_modules',
npm verb linkStuff   false,
npm verb linkStuff   'C:\\Users\\spjbd\\AppData\\Roaming\\npm\\node_modules\\bow
er\\node_modules' ]
npm info linkStuff insight@0.4.3
npm verb linkBins insight@0.4.3
npm verb linkMans insight@0.4.3
npm verb rebuildBundles insight@0.4.3
npm verb rebuildBundles [ '.bin',
npm verb rebuildBundles   'async',
npm verb rebuildBundles   'chalk',
npm verb rebuildBundles   'configstore',
npm verb rebuildBundles   'inquirer',
npm verb rebuildBundles   'lodash.debounce',
npm verb rebuildBundles   'object-assign',
npm verb rebuildBundles   'os-name',
npm verb rebuildBundles   'tough-cookie' ]
npm info install insight@0.4.3
npm info postinstall insight@0.4.3
npm verb unlock done using C:\Users\spjbd\AppData\Roaming\npm-cache\_locks\insig
ht-46285e0bf21e5a96.lock for C:\Users\spjbd\AppData\Roaming\npm\node_modules\bow
er\node_modules\insight

我尝试了几种不同的方法来抵消 -

  • 卸载/重新安装节点
  • 更新 npm
  • 为路径变量添加路径
  • 等

出现的另一个错误是构建时 npm-cache 目录存在问题。

对让 bower 正确运行有什么见解吗?

【问题讨论】:

    标签: node.js npm bower bower-install


    【解决方案1】:

    你在用node@0.12 试试这个吗?如果是这样,您可以尝试使用node@0.10.36,这是一个已知良好的版本吗?

    【讨论】:

      【解决方案2】:

      设置注册表帮助我挂起安装。只需运行

      npm config set registry https://registry.npmjs.org/
      

      您可能需要使用 sudo 来更改您的配置文件。

      【讨论】:

      • 对我没有帮助
      【解决方案3】:

      我使用的是 Windows 10,并且遇到了类似的问题。我没有使用 npm install -g bower 的 Windows 命令提示符,而是使用了 git bash 命令提示符。它奏效了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-08
        • 2016-01-22
        • 2017-11-11
        • 2019-02-23
        • 2017-06-17
        • 1970-01-01
        相关资源
        最近更新 更多