The build failed because the process exited too early
See original GitHub issueIs 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
node -v
: v6.11.4npm -v
: 5.6.0yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected): 1.1.0
Then, specify:
- Operating system: macOs highSierra
- Browser and version (if relevant): Google Chrome
Steps to Reproduce
(Write your steps here:) Terminal Commands
- ‘git pull’ in ssh
- 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
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.
Thanks! @Timer I was just looking into that so now it’s time to learn code splitting! 😃