FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

丶灬走出姿态 提交于 2019-12-19 04:06:00

问题


I can't make any search with npm:

npm search material

..results with the following error:

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

I tried with the following command

npm --max_old_space_size=16384 search material

but I had the same result.

npm version is 3.10.3


回答1:


According to npm's bug tracker, this has been fixed in npm@4.0.0. (see thread).

Searching works fine for me after upgrading npm:

npm install npm@latest -g

(you might need to su/sudo on your system)



来源:https://stackoverflow.com/questions/38914471/fatal-error-call-and-retry-last-allocation-failed-javascript-heap-out-of-memo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!