Skip to content

Instantly share code, notes, and snippets.

@stephenmathieson
Created October 24, 2016 21:42
Show Gist options
  • Save stephenmathieson/90e6fd04c3e51573738bb67956022e89 to your computer and use it in GitHub Desktop.
Save stephenmathieson/90e6fd04c3e51573738bb67956022e89 to your computer and use it in GitHub Desktop.
npm out of memory
∴ npm search slugify
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 --->
33486 ms: Scavenge 1020.6 (1434.2) -> 1020.5 (1434.2) MB, 3.9 / 0 ms (+ 0.0 ms in 2 steps since last GC) [allocation failure].
33490 ms: Scavenge 1020.5 (1434.2) -> 1020.5 (1434.2) MB, 3.9 / 0 ms [allocation failure].
34443 ms: Mark-sweep 1020.5 (1434.2) -> 1020.4 (1434.2) MB, 952.7 / 0 ms (+ 738.6 ms in 3969 steps since start of marking, biggest step 6.6 ms) [last resort gc].
35417 ms: Mark-sweep 1020.4 (1434.2) -> 1020.4 (1434.2) MB, 974.3 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x2f338edc9e59 <JS Object>
1: stringify [native json.js:164] [pc=0x39df3c116597] (this=0x2f338edc3b09 <a JSON with map 0x384618509699>,z=0x39b7bb961021 <an Object with map 0x207c819417c9>,A=0x2f338ed04189 <undefined>,N=0x2f338ed04189 <undefined>)
2: arguments adaptor frame: 1->3
3: /* anonymous */ [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/lib/node_modules/npm/lib/cache/up...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
4: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
5: v8::internal::IncrementalStringBuilder::Extend() [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
6: v8::internal::BasicJsonStringifier::SerializeString(v8::internal::Handle<v8::internal::String>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
7: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
8: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
9: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<true>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
10: v8::internal::BasicJsonStringifier::Result v8::internal::BasicJsonStringifier::Serialize_<false>(v8::internal::Handle<v8::internal::Object>, bool, v8::internal::Handle<v8::internal::Object>) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
11: v8::internal::Runtime_BasicJSONStringify(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/stephenmathieson/dev/src/github.com/creationix/nvm/versions/node/v6.3.0/bin/node]
12: 0x39df3bb0961b
Abort trap: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment