S
S
saqo_tadevosyan2020-12-05 08:19:02
JavaScript
saqo_tadevosyan, 2020-12-05 08:19:02

How to fix an error in pre-commit?

Good afternoon. When I try to make a commit or when I run yarn run fix I get this error, how can I fix this or what is the reason?
5fcb183f9de70701137288.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2020-12-05
@alexk111

Judging by "JavaScript heap out of memory" there is a problem of lack of memory. If the situation with uncontrolled devouring of all memory by some process is excluded, then increasing the size of memory allocated to Node.js by setting the following environment variable should help:
NODE_OPTIONS=--max_old_space_size=8192
By default, Node.js allocates 4GB of memory. Setting the value to 8192 will increase to 8GB.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question