问题
I have installed node.js today and initiated the npm install -g create-react-app command successfully. But after that when I use npm create-react-app appname command, it's just stuck in the step- enter image description here
and it's almost 2 hours with no response. I have tried other commands like npm init too which are working perfectly but this is taking so long with no response. I'm working on a 32 bit windows computer with npm version 6.14.5 and node version 12.18.2. Also, the network is working fine so I'm sure that's not the issue.
回答1:
I have faced the same issue, I have done 3 things,
- Just reset the firewall & security settings as default.
- Re-install your node-js & restart your PC.
Now it is working fine.
Images from Npm:
回答2:
Use npx create-react-app my-app instead to create an react App. See official docs: https://reactjs.org/docs/create-a-new-react-app.html
回答3:
Just reset the firewall & security settings as default. Re-install your node-js & restart your PC. Now it is working fine.
来源:https://stackoverflow.com/questions/62944695/create-react-app-command-stuck-on-installing-react-react-dom-react-scripts-with