create-react-app命令停留在安装带有cra-template的react react-dom react-scripts [英] create-react-app command stuck on installing react react-dom react-scripts with cra-template

查看:67
本文介绍了create-react-app命令停留在安装带有cra-template的react react-dom react-scripts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天已经安装了node.js并成功启动了npm install -g create-react-app命令.但是之后,当我使用npm create-react-app appname命令时,它只是停留在步骤-在此处输入图片描述

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

,将近2个小时没有响应.我也尝试了其他命令,例如npm init,它们也可以正常工作,但这花费了很长时间,没有任何响应.我正在使用npm 6.14.5和节点版本12.18.2.的32位Windows计算机.另外,网络工作正常,所以我确定这不是问题所在.

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.

推荐答案

我遇到了同样的问题,我做了三件事,

I have faced the same issue, I have done 3 things,

  1. 只需重置防火墙&安全设置为默认设置.
  2. 重新安装您的node-js&重新启动您的PC.

现在一切正常.

来自Npm的图片

这篇关于create-react-app命令停留在安装带有cra-template的react react-dom react-scripts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆