-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Can't run npm start: errno 1 #155
Comments
I get the same thing...(only on windows10 64bit, works in ubuntu16.04).
I can see an electron process in task manager but no electron window/app launches. If I terminated the process then I get this
Inspecting the logs reveals the same stack trace as @tico86 Note that I get the same thing when trying to launch a simple app with electron-prebuilt-compile and using npm start or electron ./app/main.js. So its most likely some npm/windows weirdness. |
Same here please help us solve this problem |
when I use npm start it shows me same bug |
Hey, i found the solution for me. The error occured when i used the a terminal plugin directly from the atom editor. When i run "npm start" directly in Powershell all works fine. |
Had same problem when running from terminal in atom, @tico86 solution to run directly from powershell worked for some reason, annoying tough. |
Same problem but was unable to solve using powershell, any other solutions? |
Same problem but for deploy. Like : yarn run instead of npm run |
Anyone Found a solution yet?
npm ERR! code ELIFECYCLE |
elrapha Do you try to use YARN ? |
@steven-dev I would not know where to start with that. this project is a legacy software that has been running in ubuntu . I have a windows machine so i am trying to get it to work the same in windows. Unless i just need to install yarn and run some sort of command then i can try that now. But if there are configurations involved I would have to research more into that... |
@steven-dev Thanks for the tip Yarn worked for me. I had to install Visuall C++ first but after that yarn |
Good ;) |
I would still typically recommend PowerShell for the commands or try running in the Ubuntu subsystem on the windows 10 update 1709 from which I've been doing the testing over at node. |
Had same problem too. |
Had the same issue. Switched to yarn by simply running in a terminal window inside my project: |
If you've installed
If you've installed it locally, then run:
Windows
Node v8.2.0 and later
|
Given solutions posted above, especially that by @MahMoos, i'm going to go ahead and close this. Feel free to ping me if issues persist! |
You got to run below command first to run development webpack server with the output of the build. This server don't open automatically an instance of electron.
After that you execute one more command:
|
I try run follow and not error :
or
But, electron is not start up.
Ubuntu:
|
I've had a similar problem, and I've solved it, as follows $ npm install electron -g
$ npm start |
I have a similar problem, and I've tried everything which is given in this issue #155 and still electron Browser Window won't open, Need help |
I was using the latest version of nodejs 11 that's why it was not working. After installing the nodejs 10.13 version it worked for me. ISSUE SOLVED. |
In my case, there was a dead process at the same port and I got the same error. After killing the process it worked right |
This work for me also!! |
I didnt have to do any of the aforementioned solution, i just had to check with my webpack.config file to see what was causing the error, npm run build made easy to narrow . then npm start works perfectly. |
please solve this problem |
Hey I faced the same error -Cheers it will work |
Thank you |
But your server isnt running an audio playback file this error is to do with audio |
I solved it reinstalling npm install --save @types/react and npm install --save @types/react-dom |
Same problem here. Please help! |
I solve My issue by |
I am working on Win 10 64bit. I have installed the latest Nodejs and the windows build tools via npm.
I cloned the repo and did "npm install".
I get the following error on "npm start":
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@5.0.3
3 info using node@v8.1.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle electron-quick-start@1.0.0
prestart: electron-quick-start@1.0.0prestart: no script for prestart, continuing6 silly lifecycle electron-quick-start@1.0.0
7 info lifecycle electron-quick-start@1.0.0
start: electron-quick-start@1.0.0start: unsafe-perm in lifecycle true8 verbose lifecycle electron-quick-start@1.0.0
9 verbose lifecycle electron-quick-start@1.0.0
start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;F:\Code\electron-quick-start\node_modules.bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Boxcryptor\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin;C:\Program Files\nodejs;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Users\tico\AppData\Local\Microsoft\WindowsApps;C:\Users\tico\AppData\Local\atom\bin;C:\Users\tico\AppData\Local\Yarn\bin;C:\Users\tico\AppData\Roaming\npmstart: CWD: F:\Code\electron-quick-start10 verbose lifecycle electron-quick-start@1.0.0
11 silly lifecycle electron-quick-start@1.0.0
start: Args: [ '/d /s /c', 'electron .' ]start: Returned: code: 1 signal: null12 silly lifecycle electron-quick-start@1.0.0
13 info lifecycle electron-quick-start@1.0.0~start: Failed to exec start script
14 verbose stack Error: electron-quick-start@1.0.0 start:
electron .
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at EventEmitter.emit (events.js:213:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at ChildProcess.emit (events.js:213:7)
14 verbose stack at maybeClose (internal/child_process.js:897:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
15 verbose pkgid electron-quick-start@1.0.0
16 verbose cwd F:\Code\electron-quick-start
17 verbose Windows_NT 10.0.15063
18 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 verbose node v8.1.1
20 verbose npm v5.0.3
21 error code ELIFECYCLE
22 error errno 1
23 error electron-quick-start@1.0.0 start:
electron .
23 error Exit status 1
24 error Failed at the electron-quick-start@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 ]
The text was updated successfully, but these errors were encountered: