Closed derrend closed 4 years ago
Keep getting this error when running npm run build
npm run build
Tested on ubuntu 20.04 and Fedora.
<--- Last few GCs ---> [30485:0x1570a40] 263994 ms: Mark-sweep 1128.6 (1435.7) -> 1128.2 (1434.2) MB, 595.0 / 0.0 ms (average mu = 0.027, current mu = 0.000) allocation failure GC in old space requested [30485:0x1570a40] 264595 ms: Mark-sweep 1128.2 (1434.2) -> 1128.2 (1385.7) MB, 600.8 / 0.0 ms (average mu = 0.014, current mu = 0.000) last resort GC in old space requested <--- JS stacktrace ---> ==== JS stack trace ========================================= 0: ExitFrame [pc: 0x1492df9d452b] 1: StubFrame [pc: 0x1492df992a16] Security context: 0x33814cbaee11 <JSObject> 2: replace [0x33814cbb4899](this=0x1d264b58a301 <Very long string[221248461]>,0x211d51fabbd9 <JSRegExp <String[18]: [<>\/\u2028\u2029]>>,0x211d51fabc71 <JSFunction escapeUnsafeChars (sfi = 0x343ca8b28d41)>) 3: serialize(aka serialize) [0x343ca8b29a91] [/root/MyEtherWallet/node_modules/@vue/cli-service/node_module... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 0x7f0d8599946c node::Abort() [/lib/x86_64-linux-gnu/libnode.so.64] 2: 0x7f0d859994b5 [/lib/x86_64-linux-gnu/libnode.so.64] 3: 0x7f0d85bc5e6a v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64] 4: 0x7f0d85bc60e1 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64] 5: 0x7f0d85f60c66 [/lib/x86_64-linux-gnu/libnode.so.64] 6: 0x7f0d85f72043 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64] 7: 0x7f0d85f72930 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64] 8: 0x7f0d85f73c26 v8::internal::Heap::CollectAllAvailableGarbage(v8::internal::GarbageCollectionReason) [/lib/x86_64-linux-gnu/libnode.so.64] 9: 0x7f0d85f749c4 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64] 10: 0x7f0d85f40a8d v8::internal::Factory::AllocateRawWithImmortalMap(int, v8::internal::PretenureFlag, v8::internal::Map*, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64] 11: 0x7f0d85f49178 v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64] 12: 0x7f0d860892ad v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64] 13: 0x7f0d86206d1a v8::internal::Runtime_RegExpExecMultiple(int, v8::internal::Object**, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.64] 14: 0x1492df9d452b Aborted (core dumped) npm ERR! code ELIFECYCLE npm ERR! errno 134 npm ERR! myetherwallet@5.6.6-hotfix.2 build: `npm run update && vue-cli-service build` npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the myetherwallet@5.6.6-hotfix.2 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-06-25T02_13_10_439Z-debug.log```
my fault, i wasn't editing the package.json script corrently
package.json
Keep getting this error when running
npm run build
Tested on ubuntu 20.04 and Fedora.