question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The build failed because the process exited too early

See original GitHub issue

Is this a bug report?

Yes.

Did you try recovering your dependencies?

NPM Version: 5.6.0

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

  1. node -v: v6.11.4
  2. npm -v: 5.6.0
  3. yarn --version (if you use Yarn):
  4. npm ls react-scripts (if you haven’t ejected): 1.1.0

Then, specify:

  1. Operating system: macOs highSierra
  2. Browser and version (if relevant): Google Chrome

Steps to Reproduce

(Write your steps here:) Terminal Commands

  1. ‘git pull’ in ssh
  2. npm run build Then ‘Error’

Expected Behavior

(Write what you thought would happen.) This is where I should see on the terminal, all the changes that are being pushed to the app on the server.

Actual Behavior

‘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.’ npm ERR! Linux 4.4.0-109-generic npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “build” npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! simulation-3@0.1.0 build: react-scripts build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the simulation-3@0.1.0 build script ‘react-scripts build’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the simulation-3 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! react-scripts build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs simulation-3 npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls simulation-3 npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/personalProject/npm-debug.log

Reproducible Demo

My package.json from this issue. https://github.com/stefanomartinengo/personalProject/blob/master/package.json

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Jan 19, 2018

As the error suggests, your server does not have enough system memory to build the project.

You probably need to add some swap or upgrade the memory.

0reactions
stefanomartinengocommented, Jan 19, 2018

Thanks! @Timer I was just looking into that so now it’s time to learn code splitting! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying React app on Ubuntu 18.04: build failed because ...
I'm trying to deploy my React app on an Ubuntu 18.04 virtual machine provided by Digital Ocean. Here's my process: I have a...
Read more >
Troubleshooting - Create React App
The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9...
Read more >
The build failed because the process exited too early.
I have a matrix that runs the build on different node versions but those (2 others) pass but for some reason fails on...
Read more >
The build failed because the process exited ... - Google Groups
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9`...
Read more >
React: NPM run build exits to early - Replit
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9`...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found