npx create-react-app my-app之后出现不兼容警告

时间:2020-09-06 18:58:27

标签: node.js reactjs create-react-app npx

我使用了npx create-react-app my-app 但它显示以下错误。如果期望创建一个反应项目该怎么办。发生了以下警告。

C:\Users\dell\OneDrive\Desktop\react>npx create-react-app reactapp

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.5
[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 23 new dependencies.
info Direct dependencies
├─ cra-template@1.0.3
├─ react-dom@16.13.1
├─ react-scripts@3.4.3
└─ react@16.13.1
info All dependencies
├─ @babel/helper-member-expression-to-functions@7.11.0
├─ ... some dependencies here ...
└─ webpack-dev-server@3.11.0
Done in 35.57s.

1 个答案:

答案 0 :(得分:1)

重新安装GIT,然后重试。我的CREATE-REACT-APP提供了相同的错误,然后重新安装git即可解决该错误