Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    Problema con npm e memory

    ciao!

    sto cercando un pacchetto tramite npm, ma ottengo questo errore:
    codice:
    $ npm --max_old_space_size=4096 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 --->
    
       72621 ms: Mark-sweep 1033.8 (1351.3) -> 1008.0 (1325.1) MB, 621.6 / 0.0 ms [allocation failure] [GC in old space requested].
       73304 ms: Mark-sweep 1008.0 (1325.1) -> 1007.9 (1287.1) MB, 683.1 / 0.0 ms [last resort gc].
       73948 ms: Mark-sweep 1007.9 (1287.1) -> 1007.9 (1279.1) MB, 643.8 / 0.0 ms [last resort gc].
    
    
    <--- JS stacktrace --->
    
    ==== JS stack trace =========================================
    
    Security context: 0x1768c51cfb51 <JS Object>
        1: fromString(aka fromString) [buffer.js:199] [pc=0x392419bcdcb0] (this=0x1768c5104381 <undefined>,string=0x1b4f34c0c449 <Very long string[210446082]>,encoding=0x1768c51dd361 <String[4]: utf8>)
        2: from [buffer.js:99] [pc=0x392419b85002] (this=0x1cec846d9301 <JS Function Buffer (SharedFunctionInfo 0x90c6daf71d9)>,value=0x1b4f34c0c449 <Very long string[210446082]>,encodingOrOffset=0x1768c...
    
    FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
     1: node::Abort() [npm]
     2: 0xd6b04c [npm]
     3: v8::Utils::ReportApiFailure(char const*, char const*) [npm]
     4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [npm]
     5: v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [npm]
     6: v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [npm]
     7: v8::internal::String::Flatten(v8::internal::Handle<v8::internal::String>, v8::internal::PretenureFlag) [npm]
     8: v8::String::WriteUtf8(char*, int, int*, int) const [npm]
     9: node::StringBytes::Write(v8::Isolate*, char*, unsigned long, v8::Local<v8::Value>, node::encoding, int*) [npm]
    10: node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) [npm]
    11: node::Buffer::CreateFromString(v8::FunctionCallbackInfo<v8::Value> const&) [npm]
    12: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [npm]
    13: 0x750adb [npm]
    14: 0x7511a8 [npm]
    15: 0x75130e [npm]
    16: 0x3924195092a7
    Annullato (core dump creato)
    come vedete ho già provato ad allocare più memoria.
    ma nulla da fare.
    che posso fare??

  2. #2
    il problema era che il tutto stava su chiavetta usb.
    spostandolo sul pc ha funzionato tutto senza problemi.


  3. #3
    Moderatore di Javascript L'avatar di ciro78
    Registrato dal
    Sep 2000
    residenza
    Napoli
    Messaggi
    8,514
    Ciro Marotta - Programmatore JAVA - PHP
    Preferisco un fallimento alle mie condizioni che un successo alle condizioni altrui.


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.