reactjs - 无法在服务器中构建 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,无法构建。我不知道转售它。因为我觉得我错了,我的错。
解决方案
推荐阅读
- typescript - TypeScript 中的枚举集合
- java - 这个 Android studio 警告会不会导致将来出现任何错误?(是否应该考虑进行故障排除?)
- powershell - Powershell脚本最终无法正常使用“暂停”
- r - R:如何使用 expect_success 函数进行单元测试?
- python-3.x - 在python中使用split从字符串中提取子域
- python - 如何在 python 中读取 JSON 对象?
- sql - 使用选择列分组我无法在分组依据子句中输入
- kubernetes - Kubernetes 如何使用通用数据库创建容器化应用程序的副本?
- c# - 如何从 linq 查询中获取正确的值?
- python - Chrome 80 如何解码cookies python To powershell