Compiled successfully!
You can now view my-app in the browser.
http://x86_64-apple-darwin13.4.0:3000
Note that the development build is not optimized.
To create a production build, use npm run build.
Mac OS
node: v14.9.0
npm: 6.14.7
I have the same problem!
I have tried deleting node_modules and doing "npm install" --> didn't help.
I uninstalled the node and reinstalled it --> didn't help
Would appreciate suggestions.
Same problem for me
Compiled successfully!
You can now view my-app in the browser.
http://x86_64-apple-darwin13.4.0:3000
Note that the development build is not optimized.
To create a production build, use yarn build.
but it work on another mac with same catalina 10.15.6 ...
this is so wire
Met the same problem on MacOS Catalina 10.15.6
Found the solution at https://medium.com/@choy/fixing-create-react-app-when-npm-fails-to-start-because-your-host-environment-variable-is-being-4c8a9fa0b461:
typing unset HOST
in the cmd line worked for me!
Found the solution at https://medium.com/@choy/fixing-create-react-app-when-npm-fails-to-start-because-your-host-environment-variable-is-being-4c8a9fa0b461:
- Add "export HOST=localhost" to ~/.bash_profile
- source ~/.bash_profile
I have solved the problem based on this answer. Thanks a lot!
Most helpful comment
typing
unset HOST
in the cmd line worked for me!