【发布时间】: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