我有一个ReactJS/Typescript项目,运行在Windows10上。我试图用ts脚本构建
完整错误信息
最后几个GC
[11376:0000024682F49880] 60039 ms: Mark-sweep 2034.1 (2085.2) -> 2033.7 (2085.2) MB, 1029.4 / 0.0 ms (average mu = 0.073, current mu = 0.006) allocation failure scavenge might not succeed
[11376:0000024682F49880] 61094 ms: Mark-sweep 2034.4 (2085.2) -> 2034.1 (2085.7) MB, 1047.7 / 0.0 ms (average mu = 0.039, current mu = 0.007) allocation failure scavenge might not succeed
JS stacktrace
==== JS stack trace =========================================
0: ExitFrame [pc: 000001CDF84DC5C1]
Security context: 0x007044b9e6e1 <JSObject>
1: bindChildrenWorker(aka bindChildrenWorker) [000001AD1C0ACD59] [C:\Users\robcar\source\repos\Boost\Boost.Web\ClientApp\node_modules\typescript\lib\typescript.js:~27657] [pc=000001CDF8FA47CA](this=0x03da79d826f1 <undefined>,node=0x034b8724ab71 <NodeObject map = 000000660468F931>)
2: bind(aka bind) [000001AD1C0AE2D9] [C:\Users\robcar\source\repos\B...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF6B5EA121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810
2: 00007FF6B5E7A5B6 node::MakeCallback+4518
3: 00007FF6B5E7AFA0 node_module_register+2160
4: 00007FF6B610B3EE v8::internal::FatalProcessOutOfMemory+846
5: 00007FF6B610B31F v8::internal::FatalProcessOutOfMemory+639
6: 00007FF6B6649304 v8::internal::Heap::MaxHeapGrowingFactor+11476
7: 00007FF6B663FA67 v8::internal::ScavengeJob::operator=+25543
8: 00007FF6B663DFDC v8::internal::ScavengeJob::operator=+18748
9: 00007FF6B6646F57 v8::internal::Heap::MaxHeapGrowingFactor+2343
10: 00007FF6B6646FD6 v8::internal::Heap::MaxHeapGrowingFactor+2470
11: 00007FF6B61E9DD7 v8::internal::Factory::NewFillerObject+55
12: 00007FF6B6281ABA v8::internal::WasmJs::Install+29530
13: 000001CDF84DC5C1
我也有类似的问题,尽管是在Mac电脑上。设置一个环境变量对我来说很有用。这样,您的节点进程将接受该值,并独立于您运行的脚本使用该值。
export NODE_OPTIONS=--max_old_space_size=4096
再次运行您的命令。祝你好运!
我还试图解决这里建议的问题,如何修复“致命错误:无效标记-压缩接近堆限制分配失败-JavaScript堆出内存”错误,但对我来说不起作用 这是我的package.json
42%生成274/275模块1活动...\src\index.js??已提取!d:\clients\app\node_modules\sass-loader\lib\loader.js??ref--15-3!d:\src\styles.scss<---最后几个GC----> [12996:000002DFC57D42F0]43111 ms:清除1335.4(1425.0)->1335.3(1426
当我试图执行 我得到如下所示的错误。为了克服这个问题,我执行了
错误:致命错误:无效标记-压缩接近堆限制分配失败-JavaScript堆内存不足 我们无法解决此错误。帮助我们解决如何增加javascript堆内存的问题
我写了一个棱角分明的应用程序,供自己使用。我想在我的Rasperry PI3+上运行它。该应用程序运行在我的Linux Mint19.3环境中,不存在任何问题。但在Rasppery上我确实会出错。当我运行代码时,以下内容适用: 10%构建3/3模块0活动ℹ的equwds.:Project正在运行于http://localhost:4200/webpack-dev-server/ℹ的equwds@:
当我使用命令运行一个ionic3项目时,我会得到以下错误: