我无法使用 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
但我得到了相同的结果。
npm 版本是 3.10.3
最佳答案
根据 npm 的错误跟踪器,这已在 npm@4.0.0 中修复。 (参见 thread)。
在 upgrading npm 之后搜索对我来说工作正常:
npm install npm@latest -g
(您可能需要在您的系统上执行 su/sudo)
关于javascript - fatal error : CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38914471/