我无法使用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
node --max_old_space_size=8192 --optimize_for_size --max_executable_size=4096 --stack_size=4096 .
。希望这能帮到你。 - user5466293