我刚买了一台新的笔记本电脑,试着为工作做好准备。当我试图在我的终端中运行一个服务构建时,
"./data-management/run_update_version && docker-compose -f docker-compose/docker-compose.yml build"我得到的错误如下。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myfrontend@3.3.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myfrontend@3.3.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/2020-11-23T06_10_10_366Z-debug.log我已经尝试过许多解决方案,如干净缓存、重新执行npm安装,但都没有奏效。有人能帮忙吗。
发布于 2020-11-25 01:15:32
很明显,我发现这个错误意味着系统中没有足够的内存。我所做的就是进入对接桌面设置,并增加内存,这解决了一切。
https://stackoverflow.com/questions/64964344
复制相似问题