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

json-server errors #1

Closed
jaexplorer opened this issue Aug 18, 2019 · 2 comments
Closed

json-server errors #1

jaexplorer opened this issue Aug 18, 2019 · 2 comments

Comments

@jaexplorer
Copy link

Downloading source code, running npm install and then npm run dev, returns a series of errors. I'm not sure what is causing it, but a number of people are recieving this error in your paid tutorial course. Let me know if you can reproduce the error or on another machine. (i'm using mac).
Screen Shot 2019-08-19 at 12 05 36 am

@bradtraversy
Copy link
Owner

bradtraversy commented Aug 19, 2019 via email

@jaexplorer
Copy link
Author

Apologies Brad, I thought there was a bug or something. It has to do with my hosts file.
Here is the link I used to reset it: http://osxdaily.com/2014/04/12/restore-original-hosts-file-mac/

json-server tries to lookup the post in the hosts file but cannot find it - the only reason mine was different is I think I changed it in the past when doing a tutorial - whether that be yours or someone elses.

I've noticed alot of people are having this issue in your 2nd project, more so with the localhost 3000 to 5000. ^ This will fix it.

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