JavaScript heap out of memory err
Please find the other details below
1. Repo link - https://github.com/novuhq/novu
2. Instructions which I followed - https://docs.novu.co/community/run-in-local-machine#local-environment-setup-script-beta
3. OS - windows 10 pro
4. Node version 16.15.1
5. Ram size - 16gb
am I doing anything wrong ? Please someone help me one this.
Thanks in Advance😇
GitHub
GitHub - novuhq/novu: 🔥 The open-source notification infrastructure...
🔥 The open-source notification infrastructure with fully functional embedded notification center 🚀🚀🚀 - GitHub - novuhq/novu: 🔥 The open-source notification infrastructure with fully functional embe...
Novu
Run Novu in local machine - Novu
Prerequisites and steps to run Novu in local machine. Learn how to set up Novu on your local environment for testing and development.
3 Replies
@Puvi set env variable NODE_OPTIONS='--max-old-space-size=8192' but I think 4096 should be fine too. By default its 2 GB as far as I remember.
I think on Windows with Powershell it will be:
On Linux/MacOS:
And it will work until you will close terminal. I would suggest to save this env variable in some kind of profile file for Powershell or whatever it is on Windows.
To be honest I would suggest to use WSL on Windows for Novu development - but this is my preference as experienced Novu contributor.
Hi @madd I have tried to set up the environment variable up to 8182. But no luck 🥲
Hi @madd , its working. Earlier I added the environment variable directly using start window. now I used vs code terminal to add $Env:NODE_OPTIONS='--max-old-space-size=8192'. now its working.
Thanks for the update @Puvi