Linux 我在尝试使用npx创建react应用程序时遇到各种警告和错误

Linux 我在尝试使用npx创建react应用程序时遇到各种警告和错误,linux,reactjs,Linux,Reactjs,我正在尝试使用npx创建react应用程序,并收到以下错误:error fork ts checker webpack-plugin@1.5.0:发动机“纱线”与此模块不兼容。预期版本“>=1.0.0”。 你知道问题的根源是什么吗?任何提示都将不胜感激。谢谢 npx创建反应应用程序食品 npx: installed 91 in 5.566s Creating a new React app in /home/oren/m/code/food. Installing packages. Thi

我正在尝试使用npx创建react应用程序,并收到以下错误:
error fork ts checker webpack-plugin@1.5.0:发动机“纱线”与此模块不兼容。预期版本“>=1.0.0”。

你知道问题的根源是什么吗?任何提示都将不胜感激。谢谢

npx创建反应应用程序食品

npx: installed 91 in 5.566s

Creating a new React app in /home/oren/m/code/food.

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

yarn add v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
warning fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
error fork-ts-checker-webpack-plugin@1.5.0: The engine "yarn" is incompatible with this module. Expected version ">=1.0.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd /home/oren/m/code/food has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting food/ from /home/oren/m/code
Done.
关于我的环境:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

节点-v

v12.8.0
npm-v

6.10.2

查看日志
error fork ts checker网页中的这一行-plugin@1.5.0:发动机“纱线”与此模块不兼容。预期版本“>=1.0.0”
。它说你的纱线版本不兼容。您有0.16.1,但必须高于1.0.0。请尝试更新您的纱线版本。

我已通过安装最新版本的纱线解决了此问题。 -第一个卸载版本 -已安装最新版本
npm安装-g纱线

-删除AppData文件夹中的Thread cache文件夹解决了我的问题C:\Users\test\AppData\Local\Thread

如果其他人在从npm卸载/重新安装Thread后仍在努力解决这个问题,对我来说,我实际上在npm或其他软件包管理器之外安装了一个旧版本的Thread,我不得不从Windows的“添加或删除程序”列表中卸载它。

您安装了Thread吗?检查纱线版本并将其更新为最新版本。
6.10.2