离子构建错误代码137

时间:2017-04-02 13:01:00

标签: android node.js cordova ionic-framework npm

我正在尝试构建我的Android应用程序。它第一次建好了,但首先有一些拼写错误所以我编辑了html,现在我正在尝试构建应用程序。退出状态为137时出错.stodejs是最新的,因此是npm。我检查了大约700mb的内存。 新的离子现在我无法弄清楚错误。 还重建了node-sass。什么都行不通。 sass开始后需要花费太多时间然后自动被杀死。

附加调试文件

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 ionic-hello-world@
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 ionic-hello-world@ ionic:build: `ionic-app-scripts build "--v2"`
23 error Exit status 137
24 error Failed at the ionic-hello-world@ 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 ]

1 个答案:

答案 0 :(得分:5)

700 mb是不够的。再次重新检查。它必定是内存溢出错误。