FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript out of memory

preview_player
Показать описание
info - Creating an optimized production build .
--- Last few GCs ---
[342662:0x5bdc730] 58852 ms: Mark-sweep 1960.1 (2087.1) - 1960.1 (2082.6) MB, 1452.1 / 0.0 ms (average mu = 0.126, current mu = 0.034) allocation failure scavenge might not succeed
[342662:0x5bdc730] 60391 ms: Mark-sweep 1966.8 (2089.4) - 1966.8 (2084.2) MB, 1496.4 / 0.0 ms (average mu = 0.077, current mu = 0.028) allocation failure scavenge might not succeed
--- JS stacktrace ---

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa389b0 node::Abort() [node]
2: 0x96e0af node::FatalError(char const*, char const*) [node]
3: 0xbb7a4e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xbb7dc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd73fd5 [node]
6: 0xd74b5f [node]
7: 0xd8299b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
8: 0xd8655c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
9: 0xd4bd2d v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
10: 0xd47f89 v8::internal::FactoryBasev8::internal::Factory::AllocateRawArray(int, v8::internal::AllocationType) [node]
11: 0xd48044 v8::internal::FactoryBase v8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Handlev8::internal::Map, int, v8::internal::Handlev8::internal::Oddball, v8::internal::AllocationType) [node]
12: 0xf7ccae v8::internal::Handlev8::internal::NumberDictionary v8::internal::HashTablev8::internal::NumberDictionary, v8::internal::NumberDictionaryShape::Newv8::internal::Isolate(v8::internal::Isolate*, int, v8::internal::AllocationType, v8::internal::MinimumCapacity) [node]
13: 0xc2db4e [node]
14: 0xc2e416 v8::internal::Builtin_ArrayConcat(int, unsigned long*, v8::internal::Isolate*) [node]
15: 0x1446459 [node]
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! Exit status 134
npm ERR!
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:

Solution
Vscode
on your terminal enter the code below
export NODE_OPTIONS=--max_old_space_size=4096

Netlify
locate the enviromental settings and add the following
key: NODE_OPTIONS
Value: --max-old-space-size=4096
Note the double hypen -- before max-old-space-size=4096

Vercel
locate the environmental setting and add the following
NAME: options
VALUE: max_old_space_size=4096
Рекомендации по теме
Комментарии
Автор

Thank you sir this video solves my digital ocean error.

anuj
Автор

This did not work for me, any other solution, please

abusomwansantos
visit shbcf.ru