简体   繁体   English

如何修复 npx 在终端上创建 React 启动屏幕?

[英]How to fix npx create React start up screen on terminal?

I have no idea what's going on here.我不知道这里发生了什么。 Earlier today I was able to create React apps perfectly fine.今天早些时候,我能够完美地创建 React 应用程序。

After typing in npx create-react-app <name> everything would load, and it would show me the basic npx commands.输入npx create-react-app <name>后,一切都会加载,它会向我显示基本的 npx 命令。

But now, this weird output is showing up and I have no idea what to do:但是现在,这个奇怪的 output 出现了,我不知道该怎么办:

在此处输入图像描述

PS I have a 2017 Macbook Pro running Catalina 10.15.3 PS 我有一台运行 Catalina 10.15.3 的 2017 Macbook Pro

you must ensure you have free space in your device您必须确保设备中有可用空间

If it doesn't work for you, if you can explain the problem better如果它不适合你,如果你能更好地解释问题

Looks like the problem is with fsevents.看起来问题出在 fsevents 上。 Try adding this to your package.json:尝试将此添加到您的 package.json:

{
  "resolutions": {
    "**/**/fsevents": "^1.2.9"
  }

}

Delete yarn.lock and run yarn install again.删除 yarn.lock 并再次运行 yarn install。 Or if you're using npm, delete package-lock.json, run npm install.或者,如果您使用的是 npm,请删除 package-lock.json,运行 npm 安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM