离子建立错误代码137
问题描述:
我想构建我的android应用程序。它第一次修好了,但在第一次有一些错别字,所以我编辑了html,现在我正在尝试构建应用程序。它给出了退出状态137的错误。nodejs是最新的,npm也是最新的。我已经检查了大约700MB的可用内存。 新离子所以现在我无法弄清楚这个错误。 也重建了节点sass。没有任何工作。 sass开始后需要太多时间,然后自动死亡。离子建立错误代码137
附加调试文件
14 verbose stack Exit status 137
14 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/ubuntu/files/ic2017app
17 verbose Linux 4.4.0-64-generic
18 verbose argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "ionic:build" "--" "--v2"
19 verbose node v6.10.1
20 verbose npm v4.4.4
21 error code ELIFECYCLE
22 error errno 137
23 error [email protected] ionic:build: `ionic-app-scripts build "--v2"`
23 error Exit status 137
24 error Failed at the [email protected] ionic:build script 'ionic-app-scripts build "--v2"'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the ionic-hello-world package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error ionic-app-scripts build "--v2"
24 error You can get information on how to open an issue for this project with:
24 error npm bugs ionic-hello-world
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls ionic-hello-world
24 error There is likely additional logging output above.
25 verbose exit [ 137, true ]
答
700 MB是不够的。再次检查。它必须是内存溢出错误。
不能满足这个要求。花了一天时间,试图找出为什么我的测试VPS环境无法构建,然后在阅读此评论后在构建期间运行'free -hl'。我的构建咀嚼了所有的RAM和交换空间! – Escher