Build react project prompts error message
<--- Last few GCs --->
[1118:0x104c00000] 210060 ms: Scavenge (reduce) 2020.9 (2049.8) -> 2020.1 (2051.3) MB, 3.4/0.0 ms (average mu = 0.148, current mu = 0.006) allocation failure
[1118:0x104c00000] 213180 ms: Mark-sweep (reduce) 2021.0 (2050.3) -> 2020.1 (2051.3) MB, 3117.6/0.0 ms (average mu = 0.089, current mu = 0.010) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x101319fc5 node::Abort() (.cold.1) [/usr/local/bin/node]
2: 0x1000b6169 node::Abort() [/usr/local/bin/node]
3: 0x1000b62df node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
4: 0x100200ba7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
5: 0x100200b43 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
Solution:
1. Install increase-memory-limit.
npm install -g increase-memory-limit
2. Execute after successful installation
increase-memory-limit
Execute npm run build again and it will be OK!
Read More:
- [Solved] Build Error Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] NPM run build package error: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Hexo FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- [Solved] NPM Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed
- Node Memory Overflow: FATAL ERROR: Reached heap limit Allocation failed – JavaScript heap out of memory
- Solve Error: call_and_retry_last allocation failed – javascript heap out of memory
- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap
- IDEA reports an error Could not reserve enough space for xxxxKB object heap processing
- [Solved] Neo4j Error: Error occurred during initialization of VM Incompatible minimum and maximum heap sizes spec
- [Solved] Response Export error on submit request on future invoke, java.lang.OutOfMemoryError: Java heap space
- [Solved] kettle Error: GC overhead limit exceeded
- Git Error: please tell me who you are [How to Solve]
- [Solved] “HttpSendRequest“ failed, Windows error code=12002 andretry limit (0) exceeded for URL
- Hive Error: Error: GC overhead limit exceeded
- [Solved] Hadoop Mapreduce Error: GC overhead limit exceeded
- Zeal Open html,css, javascript Error: Content rendering error
- [HBase Error]“java.lang.OutOfMemoryError: Requested array size exceeds VM limit”
- [Solved] Axios Error: Request body larger than maxBodyLength limit
- IDEA Compile Project Error: GC overhead limit exceeded solution
- Impala Find Error: InternalException: Memory limit exceeded: Error occurred on backend