首页 > 解决方案 > 无法在服务器中构建 react js [构建失败,因为进程退出太早]

问题描述

这是我的麻烦。请帮帮我。

Creating an optimized production build...
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! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ...@0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ...@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-10-03T03_12_17_833Z-debug.log

我用kill-9杀掉了3000端口。在它运行之前没问题。但是我尝试部署不使用docker,然后使用docker而不使用docker,无法构建。我不知道转售它。因为我觉得我错了,我的错。

标签: reactjsamazon-ec2

解决方案


推荐阅读