我知道已经有很多关于这个问题的问题,但我简直不敢相信我的内存不足。
npm run dev
> mdbvue@4.8.1 dev /usr/www/users/****/****
> node build/dev-server.js
> Starting dev server...
ℹ 「wdm」: wait until bundle finished:
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! mdbvue@4.8.1 dev: `node build/dev-server.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the mdbvue@4.8.1 dev 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! /usr/home/****/.npm/_logs/2018-11-11T02_31_12_055Z-debug.log
运行“free -g”返回:
total used free shared buff/cache available
Mem: 31 1 18 0 10 28
Swap: 3 0 3
如果有帮助,我也可以发布调试日志。
最佳答案
如果 OOM 杀手 ( https://linux-mm.org/OOM_Killer ) 结束一个
由于 RAM 不足而导致的进程。
你能发布 free -m
的输出吗?在运行构建之前。
我建议在构建节点时至少有 512M RAM 可用。
关于laravel - npm 被杀死或 errno 137,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53245385/