2016-09-03 3 views
3

Windows 10에 npm 3.10.3 및 nodejs v6.3.1이 설치되었으며 npm으로 첫 번째 검색을 수행 할 때마다이 메시지가 나타납니다. 몇 분 : 그것을 인터넷 검색 후"치명적인 오류 : CALL_AND_RETRY_LAST 할당 실패 - 메모리 부족 JavaScript 힙"

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 

, 나는 그렇지 삭제 nodejs의 설치 이전의 파일에서 올 수 있다고 생각하지만, 나는 느릅 나무 사람을 찾을 수 없습니다.

누군가가 아이디어를 가지고 있습니까?

덕분에 많은

답변

1

검색이 수정되었습니다 NPM의 최신 버전으로 업데이트하시기 바랍니다.

npm install -g npm @ latest

관련 문제