Node.js npm bower安装失败(挂在同一位置)

Node.js npm bower安装失败(挂在同一位置),node.js,npm,bower,bower-install,Node.js,Npm,Bower,Bower Install,几天来,我一直在反复尝试安装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, n

几天来,我一直在反复尝试安装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缓存目录有问题


如何让bower正常运行?

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

设置注册表帮助我挂起安装。简单运行

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

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

对我没有帮助