electron-quick-start
electron-quick-start copied to clipboard
npm start: code ELIFECYCLE; errorno 1
I am trying to get quick-start up and running in a vagrant box.
I followed this post: https://flatmap.it/2016/10/25/vagrant-electron/ to get the box set-up.
System info:
Box: Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-141-generic x86_64)
Node: v8.2.1
Npm: v5.3.0
I have read through the other similar errors and searched the web for quite a few hours.
I know it is not my Node version that is the issue as in most other cases.
When running npm start I get the following error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! /home/vagrant/.npm/_logs/2018-02-19T21_08_55_663Z-debug.log
Opening the log file gives me:
0 info it worked if it ends with ok
1 verbose cli [ '/home/vagrant/.nvm/versions/node/v8.2.1/bin/node',
1 verbose cli '/home/vagrant/.nvm/versions/node/v8.2.1/bin/npm',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /home/vagrant/.nvm/versions/node/v8.2.1/lib/node_modules/npm/bin/node-gyp-bin:/home/vagrant/Code/electron-quick-start/node_modules/.bin:/home/vagrant/.nvm/versions/node/v8.2.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
9 verbose lifecycle [email protected]~start: CWD: /home/vagrant/Code/electron-quick-start
10 silly lifecycle [email protected]~start: Args: [ '-c', 'electron .' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/home/vagrant/.nvm/versions/node/v8.2.1/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess.<anonymous> (/home/vagrant/.nvm/versions/node/v8.2.1/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:921:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/vagrant/Code/electron-quick-start
16 verbose Linux 3.13.0-141-generic
17 verbose argv "/home/vagrant/.nvm/versions/node/v8.2.1/bin/node" "/home/vagrant/.nvm/versions/node/v8.2.1/bin/npm" "start"
18 verbose node v8.2.1
19 verbose npm v5.3.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `electron .`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I am at a loss as to what is causing this error. Any guidance or pointers would be appreciated...
Closing this as a duplicate of #155