Javascript Reactjs安装不当

Javascript Reactjs安装不当,javascript,node.js,reactjs,Javascript,Node.js,Reactjs,当我在我的windows pc上执行create react app时,除了node\u模块之外,只安装依赖项,而不安装任何文件夹,即使使用warn,我也没有做得太多。请提前帮助和感谢。这就是我得到的 C:\Users\Arsh Deep\Desktop>create-react-app myapp2 Creating a new React app in C:\Users\Arsh Deep\Desktop\myapp2. Installing packages. This migh

当我在我的windows pc上执行
create react app
时,除了
node\u模块
之外,只安装依赖项,而不安装任何文件夹,即使使用
warn
,我也没有做得太多。请提前帮助和感谢。这就是我得到的

C:\Users\Arsh Deep\Desktop>create-react-app myapp2

Creating a new React app in C:\Users\Arsh Deep\Desktop\myapp2.

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
├─ @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.11.0
├─ @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
├─ html-entities@1.3.1
├─ loglevel@1.7.0
├─ portfinder@1.0.28
├─ react-dev-utils@10.2.1
├─ react-dom@16.13.1
├─ react-error-overlay@6.0.7
├─ react-scripts@3.4.3
├─ react@16.13.1
├─ scheduler@0.19.1
├─ serialize-javascript@4.0.0
├─ sockjs@0.3.20
├─ spdy@4.0.2
├─ terser-webpack-plugin@2.3.8
└─ webpack-dev-server@3.11.0
Done in 17.84s.

这可能是由于网络速度缓慢或创建react应用程序版本

 1. Try to update the create-react-app version
 2. Or best uninstall create-react-app and use npx create-react-app to create react scaffold

这可能是由一些问题引起的

如果您以前没有遇到过此问题,我建议您检查连接,或者在可能的情况下更改连接以重试

其次,尝试更新您的工具

用npm试试这个,然后用CreateReact应用程序创建一个新项目

   npm rm -g create-react-app
   npm install -g create-react-app
   npx create-react-app my-app

您缺少
npx
,因此应该是
npx create react app myapp2
不起作用