鍍金池/ 問答/HTML/ electron centos 下啟動(dòng)失敗

electron centos 下啟動(dòng)失敗

"~/.npm/_logs/2018-01-22T02_25_52_120Z-debug.log" 39L, 2422C
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/node/8.9.4/bin/node',
1 verbose cli '/usr/local/node/8.9.4/bin/npm',
1 verbose cli 'start' ]
2 info using npm@4.6.1
3 info using node@v8.9.4
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle helloworld_electron@1.0.0~prestart: helloworld_electron@1.0.0
6 silly lifecycle helloworld_electron@1.0.0~prestart: no script for prestart, continuing
7 info lifecycle helloworld_electron@1.0.0~start: helloworld_electron@1.0.0
8 verbose lifecycle helloworld_electron@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle helloworld_electron@1.0.0~start: PATH: /usr/local/node/8.9.4/lib/node_modules/npm/bin/node-gyp-bin:/electron/node_modules/.bin:/usr/local/node/8.9.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/b
in:/root/bin
10 verbose lifecycle helloworld_electron@1.0.0~start: CWD: /electron
11 silly lifecycle helloworld_electron@1.0.0~start: Args: [ '-c', 'electron .' ]
12 silly lifecycle helloworld_electron@1.0.0~start: Returned: code: 1 signal: null
13 info lifecycle helloworld_electron@1.0.0~start: Failed to exec start script
14 verbose stack Error: helloworld_electron@1.0.0 start: electron .
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/node/8.9.4/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at EventEmitter.emit (events.js:214:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/node/8.9.4/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at ChildProcess.emit (events.js:214:7)
14 verbose stack at maybeClose (internal/child_process.js:925:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid helloworld_electron@1.0.0
16 verbose cwd /electron
17 verbose Linux 3.10.0-514.el7.x86_64
18 verbose argv "/usr/local/node/8.9.4/bin/node" "/usr/local/node/8.9.4/bin/npm" "start"
19 verbose node v8.9.4
20 verbose npm v4.6.1
21 error code ELIFECYCLE
22 error errno 1
23 error helloworld_electron@1.0.0 start: electron .
23 error Exit status 1
24 error Failed at the helloworld_electron@1.0.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
~
~

回答
編輯回答
笑浮塵

看不出哪里有問題啊,最好提供一點(diǎn)源碼,還有包配置信息

2017年7月11日 15:29