create-react-app 不生成 public 和 src 文件夹

create-react-app not producing public and src folders

我最初开始使用 CRA,它运行良好,大约一周没有任何问题,但是今天我创建了一个新的 React 应用程序,它忽略了构建 public 和 src 文件夹。下面是我在 运行 "npx create-react-app my-app" 之后看到的图像。我试过 "npm uninstall -g create-react-app" 但这并不能解决问题。

CRA 问题图片 1

CRA 问题图片 2

CRA 问题图 3

改用命令提示符,并尝试打开资源监视器并检查cmd.exe 在 运行 npx create-react-app 之后更改为 Suspended。如果是,请右键单击并选择 Resume Process

来源:https://github.com/facebook/create-react-app/issues/8915