I\'m trying to get started with React using webpack, but keep running into an error when I try to set up webpack-dev-server
Also encountered the same error and nothing fixed it.
It appears, in my case, that I accidentally "corrupted" the /etc/hosts
file by been able to write to it without the sudo
permission.
The clue was when I cat /etc/hosts
the output was one messy line. I deleted and re-created the file as sudo
, with the @lizzie-cd link and all went back to normal