create-react-app command stuck on installing react react-dom react-scripts with cra-template

杀马特。学长 韩版系。学妹 提交于 2021-01-28 19:03:20

问题


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,

  1. Just reset the firewall & security settings as default.
  2. Re-install your node-js & restart your PC.

Now it is working fine.

Images from Npm:

enter image description here

enter image description here




回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!