【问题标题】:node npm install -g bower FATAL ERROR: CALL_AND_RETRY_2 on Win7节点 npm install -g bower 致命错误:Win7 上的 CALL_AND_RETRY_2
【发布时间】:2014-10-20 07:28:07
【问题描述】:

已安装 Windows 7 企业版、Git 和 Node。 当我尝试

    npm install -g bower

在新节点 js 安装(x86 和 x64)上的命令提示符下(作为管理员或用户),它会在那里停留 20 分钟,并且它的内存使用量慢慢攀升至 2GB 的 RAM。 20 分钟后它崩溃了

    FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory.

关于如何在全球范围内安装 bower 有什么想法吗?

更新:看起来 npm 无法全局安装任何软件包(yeoman,grunt)。清除缓存、安装和重新安装不同的节点 js 版本或包版本没有帮助。 如果我不运行,我会收到一堆 ENOENT 和 EPERM 错误

    npm rm -g bower
    npm cache clean

首先。我认为问题的一部分可能是我的 Windows 配置文件存储在 unix 服务器上,而我的 AppData/Roaming 的路径长度约为 100 个字符。

【问题讨论】:

  • 欢迎来到 Stack Overflow,请拨打Tour
  • 尝试npm cache clean 然后npm install bower
  • npm install bower 成功完成,但出现警告 WARN prefer global,但 npm install -g bower 仍然无法完成。

标签: node.js installation npm fatal-error bower


【解决方案1】:

解决方案:管理员更改了我的配置文件的 windows 策略组,以便 AppData 保留在本地计算机上而不是远程服务器位置,它解决了我的问题。我现在可以在全球范围内安装任何软件包,没有任何问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-17
    • 2019-10-08
    • 1970-01-01
    • 2014-09-25
    • 2018-11-03
    • 2016-05-29
    • 2018-05-08
    相关资源
    最近更新 更多