React
notes

Fix start error

https://arunkrsoam.medium.com/install-react-js-on-mac-7cffe8bda2ac

 

Once the project is created then cd to the project directory and run application by $ npm start command as given below:

$ npm start

Showed below error

· npm start error events.js:200 throw er; // Unhandled ‘error’ event

$npm install react-scripts@2.1.8$ $npm start

Then it showed below error

· errno: ‘ENOTFOUND’, code: ‘ENOTFOUND’, syscall: ‘getaddrinfo’, hostname: ‘x86_64-apple-darwin13.4.0’

#unset HOST

Finally, it resolved the error by unseating the HOST and server started,

Image for post

Image for post

You can navigate to to access the webpage of react application.

Sometimes it’s irritating such minor issued that must be in knowledge to fix to initiate the react application.

For more troubleshooting, you can refer to stackflow and other websites.


Scroll to Top