&引用;致命错误:调用并重试上次分配失败-JavaScript堆内存不足;使用npm搜索

&引用;致命错误:调用并重试上次分配失败-JavaScript堆内存不足;使用npm搜索,javascript,node.js,npm,windows-10,Javascript,Node.js,Npm,Windows 10,我刚刚在Windows 10上安装了npm 3.10.3和nodejs v6.3.1,当我第一次使用npm进行搜索时,几分钟后我收到了以下消息: PS C:\Users\ToOoA> npm search express npm WARN Building the local index for the first time, please be patient [..................] | : WARN Building the local index for the f

我刚刚在Windows 10上安装了npm 3.10.3和nodejs v6.3.1,当我第一次使用npm进行搜索时,几分钟后我收到了以下消息:

PS C:\Users\ToOoA> npm search express
npm WARN Building the local index for the first time, please be patient
[..................] | : WARN Building the local index for the first time, please be patient
<--- Last few GCs --->

  397899 ms: Mark-sweep 937.3 (1256.9) -> 936.7 (1263.9) MB, 642.4 / 0 ms (+ 402.5 ms in 1423 steps since start of marking, biggest step 13.5 ms) [all
ocation failure] [GC in old space requested].
  399012 ms: Mark-sweep 936.7 (1263.9) -> 911.2 (1241.1) MB, 1112.5 / 0 ms [allocation failure] [GC in old space requested].
  400136 ms: Mark-sweep 911.2 (1241.1) -> 911.2 (1235.1) MB, 1124.0 / 0 ms [last resort gc].
  401258 ms: Mark-sweep 911.2 (1235.1) -> 911.1 (1229.1) MB, 1121.6 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000000A2635C9E51 <JS Object>
    1: fromString(aka fromString) [buffer.js:194] [pc=000003378855E0D0] (this=000000A263504189 <undefined>,string=00000099AE54CE31 <Very long string[1
96464212]>,encoding=000000A2635D6359 <String[4]: utf8>)
    2: from [buffer.js:94] [pc=000003378855DCF6] (this=000002E9C08A5BB1 <JS Function Buffer (SharedFunctionInfo 000000A2635E3899)>,value=00000099AE54C
E31 <Very long string[196464212]>,encod...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
PS C:\Users\ToOoA>npm搜索快车
npm警告首次建立本地索引,请耐心等待
[……]|:警告首次构建本地索引,请耐心等待
397899毫秒:标记扫描937.3(1256.9)->936.7(1263.9)MB,642.4/0毫秒(+402.5毫秒,自标记开始以来的1423个步骤,最大步骤13.5毫秒)[全部
定位失败][请求旧空间中的GC]。
399012毫秒:标记扫描936.7(1263.9)->911.2(1241.1)MB,1112.5/0毫秒[分配失败][请求旧空间中的GC]。
400136毫秒:标记扫描911.2(1241.1)->911.2(1235.1)MB,1124.0/0毫秒[最后的gc]。
401258毫秒:标记扫描911.2(1235.1)->911.1(1229.1)MB,1121.6/0毫秒[最后手段gc]。
==JS堆栈跟踪=========================================
安全上下文:000000 A2635C9E51
1:fromString(又称fromString)[buffer.js:194][pc=000003378855E0D0](this=000000A263504189,string=00000099AE54CE31,encoding=000000A2635D6359)
2:从[buffer.js:94][pc=000003378855DCF6](this=000002E9C08A5BB1,value=00000099AE54C)
E31,编码。。。
致命错误:调用和重试上次分配失败-JavaScript堆内存不足
在谷歌搜索之后,我想它可能来自之前安装的nodejs的文件,没有被删除,但我找不到其中的哪一个

有人有主意吗


非常感谢

这是联合国npm 4.0.1的固定版本:


请更新至npm的最新版本,搜索功能现已修复

npm安装-gnpm@latest

npm -i npm@4.0.1 -g
npm cache clear