Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work npm install && npm start #147

Closed
nitsik opened this issue Apr 19, 2017 · 4 comments
Closed

Not work npm install && npm start #147

nitsik opened this issue Apr 19, 2017 · 4 comments

Comments

@nitsik
Copy link

nitsik commented Apr 19, 2017

Hello. I do

git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install && npm start

And I have errors:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.10.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle electron-quick-start@1.0.0prestart: electron-quick-start@1.0.0
6 silly lifecycle electron-quick-start@1.0.0
prestart: no script for prestart, continuing
7 info lifecycle electron-quick-start@1.0.0start: electron-quick-start@1.0.0
8 verbose lifecycle electron-quick-start@1.0.0
start: unsafe-perm in lifecycle true
9 verbose lifecycle electron-quick-start@1.0.0start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/electron-quick-start/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/vesta/bin
10 verbose lifecycle electron-quick-start@1.0.0
start: CWD: /electron-quick-start
11 silly lifecycle electron-quick-start@1.0.0start: Args: [ '-c', 'electron .' ]
12 info lifecycle electron-quick-start@1.0.0
start: Failed to exec start script
13 verbose stack Error: electron-quick-start@1.0.0 start: electron .
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess. (/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:886:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid electron-quick-start@1.0.0
15 verbose cwd /electron-quick-start
16 error Linux 3.16.0-4-amd64
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 error node v6.10.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 electron-quick-start@1.0.0 start: electron .
24 error spawn ENOENT
25 error Failed at the electron-quick-start@1.0.0 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 electron-quick-start 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 electron-quick-start
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls electron-quick-start
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

How fix it? Thank you.

@MarshallOfSound
Copy link
Member

@nitsik It looks like your npm install failed, can you run

rm -rf node_modules
npm install
npm start

And see how that goes 👍

@nitsik
Copy link
Author

nitsik commented Apr 19, 2017

I try this, but see

npm start

electron-quick-start@1.0.0 start /electron-quick-start
electron .

/electron-quick-start/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! electron-quick-start@1.0.0 start: electron .
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the electron-quick-start@1.0.0 start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-quick-start package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-quick-start
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /electron-quick-start/npm-debug.log

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@3.10.10
3 info using node@v6.10.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle electron-quick-start@1.0.0prestart: electron-quick-start@1.0.0
6 silly lifecycle electron-quick-start@1.0.0
prestart: no script for prestart, continuing
7 info lifecycle electron-quick-start@1.0.0start: electron-quick-start@1.0.0
8 verbose lifecycle electron-quick-start@1.0.0
start: unsafe-perm in lifecycle true
9 verbose lifecycle electron-quick-start@1.0.0start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/electron-quick-start/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/vesta/bin
10 verbose lifecycle electron-quick-start@1.0.0
start: CWD: /electron-quick-start
11 silly lifecycle electron-quick-start@1.0.0start: Args: [ '-c', 'electron .' ]
12 info lifecycle electron-quick-start@1.0.0
start: Failed to exec start script
13 verbose stack Error: electron-quick-start@1.0.0 start: electron .
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess. (/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:886:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid electron-quick-start@1.0.0
15 verbose cwd /electron-quick-start
16 error Linux 3.16.0-4-amd64
17 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
18 error node v6.10.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 electron-quick-start@1.0.0 start: electron .
24 error spawn ENOENT
25 error Failed at the electron-quick-start@1.0.0 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 electron-quick-start 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 electron-quick-start
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls electron-quick-start
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

@nerososft
Copy link

@nitsik same question ,no debug log

@zeke
Copy link
Contributor

zeke commented Jun 12, 2017

@nitsik I think your answer is here: electron/electron#1518 (comment)

@zeke zeke closed this as completed Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants