-
-
Notifications
You must be signed in to change notification settings - Fork 26.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
Inform user they've specified a HOST #3719
Comments
Seems something network-related. Can you try on another network? |
tried with an hotspot and reset the home router. the error persists. but shouldn't this work even if my machine is not connected to the internet? |
could be that something else is using the 3000 port? |
running the command after disabling the network connections returns this error:
which looks pretty weird to me since the development server should start on localhost |
You've most likely set your HOST in your .bash_profile erroneously. Please remove this entry or unset HOST before running npm start. sudo scutil --set HostName change-hostname-like-this |
hmm funny thing, there is no .bash_profile, nor .bashrc on my machine Im using fish shell |
added everything is fine, the web server is working, i can sleep now. thank you guys. |
Nice! Thanks @Timer for debugging this. Is there any warning we could add to make this easier? |
I think that'd be nice. We can add a message along the lines:
This message would be cleared right after a successful bind, so it'd only be visible when you hit this error state. |
If you're looking for someone to implement this feature I'd be happy to help. |
Feel free! |
Turns out this was literally just a matter of checking for the environment variable and showing the warning message. No other changes required. 😀 |
* Add warning when HOST environment variable is set (facebook#3719) * Improve HOST environment variable warning message * Adjust text and message Closes facebook#3719
* Add warning when HOST environment variable is set (facebook#3719) * Improve HOST environment variable warning message * Adjust text and message Closes facebook#3719
* Add warning when HOST environment variable is set (facebook#3719) * Improve HOST environment variable warning message * Adjust text and message Closes facebook#3719
OS
macOS 10.13.2
Node
node -v
: 9.3.0npm -v
: 5.6.0yarn -v
: 1.3.2output:
rebooted many times, updated node and npm, updated yarn and
create-react-app
,but this only seems to works with
sudo
.i also tried to reinstall node with nvm, after stumbling against many reports that suggested this was the cause of my issue.
this is probably a stupid bug, but it's driving me crazy since yesterday,
please help.
The text was updated successfully, but these errors were encountered: