2017-04-02 114 views
1

我想構建我的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 ] 

回答

3

700 MB是不夠的。再次檢查。它必須是內存溢出錯誤。

+1

不能滿足這個要求。花了一天時間,試圖找出爲什麼我的測試VPS環境無法構建,然後在閱讀此評論後在構建期間運行'free -hl'。我的構建咀嚼了所有的RAM和交換空間! – Escher