react native - Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory on expo - Stack Overf

please help me fix this errorthis error occurs when i install the library in my expo projectyarn add r

please help me fix this error

this error occurs when i install the library in my expo project

 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-pacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb02960 node::Abort() [node]
 2: 0xa18149 node::FatalError(char const*, char const*) [node]

please help me fix this error

this error occurs when i install the library in my expo project

 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-pacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb02960 node::Abort() [node]
 2: 0xa18149 node::FatalError(char const*, char const*) [node]
Share Improve this question asked Oct 1, 2022 at 17:53 putu eka mulyanaputu eka mulyana 4437 silver badges11 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7
  • Try to run yarn cache clean
  • remove node_modules folder
  • remove .lock files like yarn.lock
  • now run yarn

it seems you don't have enough resources on your puter [storage,RAM], check the Task manager while executing the installation mand. otherwise try to expand allowed memory allocated to nodejs runtime using this mand: export NODE_OPTIONS=--max-old-space-size=4096

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745375512a4624980.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信