Ask coding questions

← Back to all posts
React: NPM run build exits to early
TravisseHansen (0)

Hey all, I'm trying to build some apps with React and I'm running into the following error just about every other time I build on Replit:

The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
error Command failed with exit code 1.

I found this explanation which makes me think it's something with the RAM available on each individual repl instance.

Does anyone know a way to get around this, i.e. make builds work every time while using React on Replit?

Coder100 (17126)

oh lol nice
yeah upgrading does fix that xd

TravisseHansen (0)

Nevermind just answered my own question - the solution is to upgrade!

To the Replit team - this could be a good way to get React devs to upgrade - as of now I just initially thought Replit wasn't very fast