严重错误:CALL_AND_RETRY_LAST分配失败-JavaScript堆内存不足 [英] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
本文介绍了严重错误:CALL_AND_RETRY_LAST分配失败-JavaScript堆内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法使用npm进行任何搜索:
I can't make any search with npm:
npm search material
..导致以下错误:
npm WARN Building the local index for the first time, please be patient
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
我尝试了以下命令
npm --max_old_space_size=16384 search material
但是我得到了相同的结果.
but I had the same result.
npm版本为3.10.3
npm version is 3.10.3
推荐答案
根据npm的错误跟踪器,此问题已在npm@4.0.0中修复. (请参见线程).
According to npm's bug tracker, this has been fixed in npm@4.0.0. (see thread).
在升级npm 之后,搜索对我来说效果很好:>
Searching works fine for me after upgrading npm:
npm安装npm @ latest -g
npm install npm@latest -g
(您可能需要在系统上使用su/sudo)
(you might need to su/sudo on your system)
这篇关于严重错误:CALL_AND_RETRY_LAST分配失败-JavaScript堆内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文