This is my first react app. I'm working on windows 10, node version 10.15.3, npm version 6.4.1. This when i execute create-react-app command:
C:\Users\hp\Desktop>npx create-react-app app2
npx: installed 91 in 30.086s
Creating a new React app in C:\Users\hp\Desktop\app2.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
+ [email protected]
+ [email protected]
+ [email protected]
added 1404 packages from 727 contributors and audited 888973 packages in
237.52s
found 0 vulnerabilities
It just get stuck after this I waited for almost 20 minutes but nothing happened ,no success message or information about commands like npm start is displayed and I have to do ctrl+c to terminate the batch job. The project folder created contains only package.json, package-lock.json and node_modules and package.json file does not have start,build,test and eject script Can anyone please help me I am not getting what is wrong here
Try to update the npm package:
npm install -g npm
And then install create react app again:
npm install -g create-react-app
And create the project again
I fixed it in three steps:
npm uninstall -g crete-react-app
yarn global add create-react-app
yarn create react-app my-app
It will work!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With