Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 无效标记-堆附近压缩限制分配失败- JavaScript堆内存不足

node/v10.19.0 

+ node -v
v10.19.0
+ npm install --unsafe-perm=true --allow-root --registry=https://registry.npm.taobao.org

> core-js@2.6.12 postinstall /test/APP/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@3.8.3 postinstall /test/APP/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js-pure@3.8.3 postinstall /test/APP/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"


> ejs@2.7.4 postinstall /test/APP/node_modules/ejs
> node ./postinstall.js

Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/react-scripts/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 2265 packages from 907 contributors in 420.732s

151 packages are looking for funding
run `npm fund` for details

+ npm run build

> APP@0.1.0 build /test/APP
> set GENERATE_SOURCEMAP=false && craco build

Creating an optimized production build...
[hardsource:a3aca751] Writing new cache a3aca751...
[hardsource:a3aca751] Tracking node dependencies with: package-lock.json, yarn.lock.
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating

<--- Last few GCs --->

[19890:0x331c040] 232125 ms: Scavenge 1359.3 (1422.6) -> 1359.0 (1425.6) MB, 8.0 / 0.0 ms (average mu = 0.172, current mu = 0.038) allocation failure
[19890:0x331c040] 233145 ms: Mark-sweep 1360.8 (1425.6) -> 1360.1 (1424.6) MB, 1011.1 / 0.0 ms (average mu = 0.096, current mu = 0.021) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 0x418dca5be1d]
Security context: 0x2a186ee1e6e9 <JSObject>
1: /* anonymous */ [0x1b428b7bc091] [/test/APP/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~174] [pc=0x418dca6bc09](this=0x3677566f7361 <SourceNode map = 0x3dba51529661>,chunk=0x049f668971a1 <SourceNode map = 0x3dba51529661>)
2: arguments adaptor frame: 3->1
3: SourceNode_add [0x2deda64...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8fa090 node::Abort() [node]
2: 0x8fa0dc [node]
3: 0xb0052e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb00764 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xef4c72 [node]
6: 0xef4d78 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xf00e52 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xf01784 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xf043f1 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xecd4e6 v8::internal::Factory::AllocateRawArray(int, v8::internal::PretenureFlag) [node]
11: 0xecdd6a v8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Heap::RootListIndex, int, v8::internal::Object*, v8::internal::PretenureFlag) [node]
12: 0xece327 v8::internal::Factory::NewUninitializedFixedArray(int, v8::internal::PretenureFlag) [node]
13: 0xe816af [node]
14: 0x1127ded v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [node]
15: 0x418dca5be1d
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! APP@0.1.0 build: `set GENERATE_SOURCEMAP=false && craco build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the APP@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 

 

 

 

posted @ 2022-06-07 16:04  papering  阅读(5416)  评论(0编辑  收藏  举报