I'm following the w3schools tutorial on react.
So the first thing I'm told to do is to create the create-react-app : npm install -g create-react-app
Then create a React application named myfirstreact : npx create-react-app myfirstreact
The app get created and every thing seems good at this point.
Now I'm asked to Run the React Application by doing the following: cd myfirstreact
and npm start
, and this is what the Terminal display
myfirstreact@0.1.0 start /root/myfirstreact
react-scripts start
Compiled successfully! You can now view myfirstreact in the browser. Local: http://localhost:3000 On Your Network: http://192.168.43.128:3000 Note that the development build is not optimized. To create a production build, use yarn build.
No new window gets opened in the browser, nothing happens.
So I open the link http://localhost:3000
on the browser and all I got is "EOF", I check the page source and the only thing there is is : EOF
And what I want is to get the default react app.
https://stackoverflow.com/questions/66620389/browser-display-eof-after-npm-start March 14, 2021 at 10:00AM
没有评论:
发表评论