JavaScript heap out of memory? Now I can't even use npm?

68
June 08, 2021, at 8:20 PM

UPDATE: so, tried chancing memory size, now I can't even use "npm" commands at all to download new files. Everything throws a memory issue. How should one handle this?

So, I'm downloading this repo (https://github.com/ChainSafe/chainbridge-ui.git) and of course go thru the usual

yarn install
yarn start

Yarn install works but when I go to run yarn start this happens:

$ yarn start
yarn run v1.22.10
$ craco --max_old_space_size=4096 start
<--- Last few GCs --->
[90784:03BEC7D0]       48 ms: Mark-sweep 1.2 (3.3) -> 1.0 (3.3) MB, 2.0 / 0.0 ms  (average mu = 0.895, current mu = 0.896) allocation failure GC in old space requested
[90784:03BEC7D0]       53 ms: Mark-sweep 1.0 (3.3) -> 1.0 (3.3) MB, 1.7 / 0.0 ms  (average mu = 0.837, current mu = 0.612) allocation failure GC in old space requested
[90784:03BEC7D0]       55 ms: Mark-sweep 1.0 (3.3) -> 1.0 (3.3) MB, 1.7 / 0.0 ms  (average mu = 0.735, current mu = 0.171) allocation failure GC in old space requested

<--- JS stacktrace --->
FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
READ ALSO
base_url () function is not working ( Code ignitor)

base_url () function is not working ( Code ignitor)

im new to php and recently im trying to load my html and css file into the code ignitorThus, my website wont load when i try to link between pages using href, id be so grateful if anyone can point out my mistakes, thankyou

67
input date - preselect year without setting value?

input date - preselect year without setting value?

<input type="date" name="birthday" id="birthdate" required="">

25
Bootstrap-Table: Using Ajax call and add link to output table

Bootstrap-Table: Using Ajax call and add link to output table

I am using bootstrap table to insert data via an ajax callHowever, I cannot format this data in the table

52