我如何让 create-react-app 安装所有文件夹和文件?

How do i make create-react-app install all folders and files?

我在使用 create-react-app 时遇到了这个问题。通常,该命令照常工作,但是,最近没有创建 src 文件夹并且 package.json 文件缺少通常存在的行。这是当我 运行 npx create-react-app sql:

时发生的情况
C:\Users\{hidden}>npx create-react-app sql
npx: installed 98 in 8.439s

Creating a new React app in C:\Users\{hidden}\sql.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
    
yarn add v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "win32" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from             
installation.
info fsevents@2.1.2: The platform "win32" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from     
installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency     
"typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev ||     
>= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 15 new dependencies.
info Direct dependencies
├─ cra-template@1.0.3
├─ react-dom@16.13.1
├─ react-scripts@3.4.1
└─ react@16.13.1
info All dependencies
├─ @babel/helper-member-expression-to-functions@7.10.5
├─ @babel/plugin-syntax-typescript@7.10.4
├─ @babel/plugin-transform-flow-strip-types@7.9.0
├─ @babel/plugin-transform-runtime@7.9.0
├─ @babel/plugin-transform-typescript@7.10.5
├─ @babel/preset-typescript@7.9.0
├─ babel-preset-react-app@9.1.2
├─ cra-template@1.0.3
├─ eslint-config-react-app@5.2.1
├─ react-dev-utils@10.2.1
├─ react-dom@16.13.1
├─ react-error-overlay@6.0.7
├─ react-scripts@3.4.1
├─ react@16.13.1
└─ scheduler@0.19.1
Done in 31.26s.

此外,这里是 package.json 文件:

{
  "name": "sql",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "cra-template": "1.0.3",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-scripts": "3.4.1"
  }
}

命令到此结束,它不会超过最后一行,而之前会。我很困惑,希望得到任何帮助,谢谢。

不确定发生了什么,但是当我第二天尝试时它成功了。谢天谢地,它现在可以工作了。 PS。我多次删除并安装了 create-react-app 但我没有重启我的笔记本电脑,也许就是这样