theme-vdoing-blog博客静态编译问题
# theme-vdoing-blog博客静态编译问题
使用
vuepress build docs或者yarn build命令进行项目编译出现错误问题
# 解决方法
vue框架问题 下面错误提示:编译过程中内存溢出... 解决方法: 命令行设置L:
set NODE_OPTIONS=--max_old_space_size=8192
或者在配置文件添加export NODE_OPTIONS=--max_old_space_size=8192
参考网站: https://blog.csdn.net/qq_24343389/article/details/125676624、https://blog.csdn.net/qq_41586280/article/details/117563493
# 编译错误问题
[BABEL] Note: The code generator has deoptimised the styling of /Users/mac/myBlogs/theme/vdoing-v1/node_modules/@vuepress/core/.temp/internal/siteData.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /Users/mac/myBlogs/theme/vdoing-v1/node_modules/@vuepress/core/.temp/internal/siteData.js as it exceeds the max of 500KB.
wait Rendering static HTML...
<--- Last few GCs --->
[9176:0x1046a2000] 332610 ms: Mark-sweep (reduce) 2039.4 (2052.9) -> 2038.8 (2054.4) MB, 1387.3 / 0.0 ms (average mu = 0.220, current mu = 0.009) allocation failure scavenge might not succeed
[9176:0x1046a2000] 334646 ms: Mark-sweep (reduce) 2039.9 (2056.4) -> 2039.3 (2056.9) MB, 2015.9 / 0.0 ms (average mu = 0.107, 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: 0x1012d8685 node::Abort() (.cold.1) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
2: 0x1000a6309 node::Abort() [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
3: 0x1000a646f node::OnFatalError(char const*, char const*) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
4: 0x1001e8cc7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
5: 0x1001e8c63 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
6: 0x100395b65 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
7: 0x10039760a v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
8: 0x100392d35 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
9: 0x100390660 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
10: 0x10039ed4a v8::internal::Heap::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
11: 0x10039edd1 v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
12: 0x10036cea7 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
13: 0x1006ebd38 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
14: 0x100a71679 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/Users/mac/.nvm/versions/node/v14.15.3/bin/node]
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
编辑 (opens new window)