npm build gives “Ineffective mark-compacts near heap limit Allocation failed”

I had a similar issue, although on a Mac computer.
Setting an environment variable did the trick for me. That way, your node process will take the value and use it independently of which script you’re running.

export NODE_OPTIONS=--max_old_space_size=4096

The run your command again. Good Luck!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)