node.js - 为什么我在安装 react 应用程序时,它给了我这个错误?
问题描述
所以我不知道我的电脑怎么了,我问的每个人都说这很奇怪,他们以前从未见过,所以我希望有人能在我买另一台电脑之前帮助我哈哈...jk
您在此处看到的此屏幕截图是我运行“npm create-react-app”后发生的情况
idk 为什么它只是留在那里,它只提供三个文件,而不是给我所有我需要的 react 应用程序文件(如公共,SRC)。
如果有人向我发送包含所有正确文件的文件夹,我能够运行 react 应用程序并对其进行处理,问题是我由于某种原因无法创建,而我的强迫症真的让我很生气。
谢谢,麻烦您了!:)
$ npx create-react-app myapp13
Creating a new React app in C:\Users\joesa\Desktop\myapp13.
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 14 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/plugin-syntax-typescript@7.10.1
├─ @babel/plugin-transform-flow-strip-types@7.9.0
├─ @babel/plugin-transform-runtime@7.9.0
├─ @babel/plugin-transform-typescript@7.10.1
├─ @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 12.46s.
解决方案
推荐阅读
- python - An error happens in my wordnet python code: IndexError; List index out of range
- pytorch - What is the correct way to implement gradient accumulation in pytorch?
- excel - 我们可以在 VBA 中分配 Win + D 函数吗?
- azure-logic-apps - 使用相同的服务总线队列项重试逻辑应用
- android - 在 dispose() 之后调用 setState():_StatefulBuilderState#09642(生命周期状态:已失效,未安装)
- javascript - 如何仅滚动固定区域,而不是整个页面 onClick?
- python - json到pandas数据框,第一列值在所有行中都相同
- kubernetes - k8s - pod可以ping外部IP,但不能wget?
- linux - 如何创建一个从 csv 文件读取输入的 bash 脚本
- google-bigquery - BigQuery 验证器检测到错误,但 Query 成功运行