请帮助我修正这个错误
这错误发生当我安装这库在我的expo项目
yarn add react-native-easy-markdown
<--- Last few GCs --->
[46238:0x4dae7b0] 86837 ms: Scavenge 2038.6 (2078.8) -> 2038.0 (2079.6) MB, 5.7 / 0.0 ms (average mu = 0.261, current mu = 0.252) allocation failure
[46238:0x4dae7b0] 86847 ms: Scavenge 2039.3 (2079.6) -> 2038.7 (2084.1) MB, 5.2 / 0.0 ms (average mu = 0.261, current mu = 0.252) allocation failure
[46238:0x4dae7b0] 86866 ms: Scavenge 2041.9 (2084.1) -> 2040.4 (2084.6) MB, 5.4 / 0.0 ms (average mu = 0.261, current mu = 0.252) allocation failure
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb02960 node::Abort() [node]
2: 0xa18149 node::FatalError(char const*, char const*) [node]
2条答案
按热度按时间8oomwypt1#
yarn cache clean
node_modules
文件夹.lock
文件,如yarn.lock
yarn
dy2hfwbg2#
看起来你没有足够的资源在你的计算机上[存储,RAM],检查任务管理器当执行安装命令.否则尝试扩展允许的内存分配给nodejs运行时使用这个命令:第一个月