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

throw new errors.Error('ERR_UNKNOWN_SIGNAL', signal); #22

Open
ghost opened this issue Apr 28, 2018 · 4 comments
Open

throw new errors.Error('ERR_UNKNOWN_SIGNAL', signal); #22

ghost opened this issue Apr 28, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2018

I have run this project using npm run dev, the app ran fine, but I also got this output:

[WARN] No ENV file found
03:14:29 electron.1 | starting electron
03:14:30 react.1 | > [email protected] start C:\Users\G\Downloads\electron-with-create-react-app-master
03:14:30 react.1 | > react-scripts start
03:14:34 react.1 | Something is already running on port 3000.
[DONE] Killing all processes with signal null
internal/util.js:186
throw new errors.Error('ERR_UNKNOWN_SIGNAL', signal);
^

Error [ERR_UNKNOWN_SIGNAL]: Unknown signal: null
at convertToValidSignal (internal/util.js:186:9)
at ChildProcess.kill (internal/child_process.js:379:5)
at EventEmitter. (C:\Users\G\Downloads\electron-with-create-react-app-master\node_modules\foreman\lib\proc.js:54:11)
at emitOne (events.js:121:20)
at EventEmitter.emit (events.js:211:7)
at ChildProcess. (C:\Users\G\Downloads\electron-with-create-react-app-master\node_modules\foreman\lib\proc.js:50:13)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: nf start -p 3000
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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! C:\Users\G\AppData\Roaming\npm-cache_logs\2018-04-28T23_14_34_096Z-debug.log

Is this normal?

@csepulv
Copy link
Owner

csepulv commented Apr 29, 2018

It isn't normal. Do you have something else running on port 3000? You could edit package.json and change the port to something else to see if you still get the error.

@ghost
Copy link
Author

ghost commented Apr 29, 2018

@csepulv No there is nothing on port 3000.
I noticed when it does it. The first time I run the app it doesn't produce this error.
As soon as I closed the app using 'x' button, I got this message.
And then each time I run app I see it now (the app runs though, just the message is there).
ps. I am running on windows.

@csepulv
Copy link
Owner

csepulv commented Apr 29, 2018

npm run dev runs a few processes. I wouldn't stop by closing/exiting the window, but press Cntrl-C in your command line (terminal) to kill all the processes. It seems the window exit only kills the electron process, but leaves the react dev server running on port 3000.

Task Manager may let you find/kill the runaway process, but if you use Cntrl-C it should work.

In production, with a packaged and installed app, closing the window would be fine as you wouldn't have the react/webpack dev server running.

@gabriel-dehan
Copy link

Not exactly the same issue but I had the same error (when starting tho) and it was simply because I had changed the path to the electron-wait-react path and didn't update the Procfile, might be useful for posterity.

Hope you have found what was bothering you tho 🙏

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

2 participants