-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improvements in the TUTORIAL.md file #3435
Conversation
|
Thanks for this! Do you think it might be easier to just have the docs suggest trying to hit |
What do you think now @calebcartwright? |
HI! Did you run into this issue? What OS was that on? Usually OS's will include this alias by default; it's rare that I've seen something like this happen. I'm with Caleb… not sure I'd want to direct new users to edit their |
I'd echo @paulmelnikow question about your OS if you experienced this issue. We want to make sure anyone can get Shields running on their local machine regardless of their OS, without having to manually edit the hosts file. If there's a particular OS/environment where our npm |
So, do you guys think that the best option is to replace localhost:3000 with 127.0.0.1:3000? |
Can you say more about how you encountered this issue? What OS are you using? |
I'm using macOS 10.12.6 (Sierra), node 10.15.3 and npm 6.4.1. What do you think, @paulmelnikow? |
Also, I've just added the method in the first example, because it didn't compile: |
Thanks for adding the category! Re /etc/hosts: Here's an example of this issue reported on another project: angular/angular-cli#2227. I'm gleaning from that issue that this line is in /etc/hosts by default which certainly is also my expectation. So I think this issue occurs when the original contents of /etc/hosts is manually changed. Probably it is better if most users do not edit /etc/hosts for exactly this reason. We could use 127.0.0.1 instead, though again, I'm not aware of any systems that don't have this mapping by default. We shouldn't cover every eventuality in our tutorial and I don't want to give people the impression that they should be editing /etc/hosts (which seems to be what caused this issue). I suppose we could add a troubleshooting section, and maybe link out to that issue. (particularly angular/angular-cli#2227 (comment)) |
Nice, let me modify the file it with your proposal. |
I've updated the TUTORIAL.md file with your proposals. Could someone review it in order to close it? |
Co-Authored-By: Caleb Cartwright <calebcartwright@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This LGTM now. @paulmelnikow any other thoughts on this one? |
I've just added the explanation for both |
Can we close this PR or is there anything else to do? |
Each PR has to be reviewed, and approved by at least one member of the maintainer team before it can be merged. Even after a PR has been approved, additional changes (like the one you made a few hours ago) restart the process. We'll take a look at your latest commit when we can and potentially provide additional feedback and/or request changes. |
Thanks @calebcartwrigh! I I didn't want to seem to hurry, sorry if I did! |
No worries! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Suggested one minor tweak.
Co-Authored-By: Paul Melnikow <github@paulmelnikow.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me as well, thanks for your first contribution! Let's get it merged. 😉
While I was trying to install shields for the first time, I ran into a problem that I solved.
I've added the solution in the doc/TUTORIAL.md file in order to ease the process for the newbies like me.
Source of the solution: https://medium.com/andrewmmc-io/node-js-error-getaddrinfo-enotfound-localhost-b7ee35e1bb60