Home > database >  Is my server too weak for `create-react-app`?
Is my server too weak for `create-react-app`?

Time:01-16

I tried setting up a ReactJS app with create-react-app on my DigitalOcean Droplet with 10 GB disk space and 512 MB RAM (Ubuntu 22.04), though it keeps failing on react-scripts. When I do it on my much better equipped local machine (also Ubuntu), it works fine. Any idea what might cause this?

CodePudding user response:

It might be due to the available RAM. Following what was tried in this answer:

node --max_old_space_size=512 node_modules/.bin/react-scripts build

CodePudding user response:

export NODE_OPTIONS=--max_old_space_size=512

npx create-react-app my-app

  • Related