laravel - npm 被杀死或 errno 137

标签 laravel vue.js npm

我知道已经有很多关于这个问题的问题,但我简直不敢相信我的内存不足。

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/

相关文章:

node.js - 在开发环境中使用 Vue.js 热重载服务器 + Node 服务器进行 Passport.js 身份验证时出现问题

typescript - 停止 typescript-eslint/explicit-module-boundary-types 应用于不使用 Typescript 的 vue 组件

javascript - Meteor Npm.require() 在父目录中找不到文件

javascript - 什么是passport.initialize()? (nodejs express )

laravel - 为什么 _token 和 XSRF-TOKEN 在 Laravel 中不同?

php - Laravel - 如何删除具有 belongsTo 关系的模型的多态关系?

typescript - Vue js 3 - 属性 'projects' 在类型“CreateComponentPublicInstance<{}、{}、{}、{}、{}”上不存在,

node.js - react-router 无法解析模块历史,缺少 lib 文件夹

php - 如何注销 Laravel 5.x 中过期的 session ?

php - 在 Laravel 5.6.3 中使用 Parsedown