electron-api-demos icon indicating copy to clipboard operation
electron-api-demos copied to clipboard

problem with node install

Open nascarsayan opened this issue 7 years ago • 5 comments

nascarsayan avatar Aug 06 '17 06:08 nascarsayan

Problem with npm start. Can't figure out the reason. Any help is appreciated :-D My log-file:

1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', '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 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/hindpos/electron-api-demos/node_modules/.bin:/home/hindpos/bin:/home/hindpos/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle [email protected]~start: CWD: /home/hindpos/electron-api-demos
11 silly lifecycle [email protected]~start: Args: [ '-c', 'electron .' ]
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `electron .`
13 verbose stack spawn ENOENT
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack     at emitTwo (events.js:106:13)
13 verbose stack     at ChildProcess.emit (events.js:191:7)
13 verbose stack     at maybeClose (internal/child_process.js:891:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/hindpos/electron-api-demos
16 error Linux 4.4.0-89-generic
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 error node v6.11.2
19 error npm  v3.10.10
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error [email protected] start: `electron .`
24 error spawn ENOENT
25 error Failed at the [email protected] start script 'electron .'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the ElectronAPIDemos package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error     electron .
25 error You can get information on how to open an issue for this project with:
25 error     npm bugs ElectronAPIDemos
25 error Or if that isn't available, you can get their info via:
25 error     npm owner ls ElectronAPIDemos
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]```

nascarsayan avatar Aug 06 '17 07:08 nascarsayan

I met the same problem as you. Have you solved the problem?

yanqic avatar Jan 04 '18 14:01 yanqic

I’m able to read code

marlboro15005 avatar Jan 04 '18 23:01 marlboro15005

having same problem

d3z3l avatar Jan 14 '18 10:01 d3z3l

@nascarsayan as a first check, did you try updating Node to a more recent version? v6.11.2 is rather old now.

codebytere avatar Mar 16 '18 15:03 codebytere