我无法创建一个新的 React 应用程序我在下面收到这些错误我相信我已经更新了所有内容

i am not able to create a new react app i get these errors below i belive i have everythig up to date

F:\Web-Development>npx create-react-app portfolio-site

在 F:\Web-Development\portfolio-site.

中创建一个新的 React 应用程序

正在安装软件包。这可能需要几分钟时间。 正在使用 cra-template 安装 react、react-dom 和 react-scripts...

yarn 添加 v1.22.10 [1/4] 正在解析包... 警告 react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi@15.1.1: 切换到 'npm install joi'

warning react-scripts > workbox-webpack-plugin > workbox-build > rollup-plugin-babel@4.4.0:此包已被弃用,不再维护。请使用@rollup/plugin-babel.

warning react-scripts > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > request-promise-native@1.0.9 : request-promise-native 已被弃用,因为它扩展了现已弃用的请求包,请参阅 https://github.com/request/request/issues/3142

warning react-scripts > jest > @jest/core > jest-config > jest-environment-jsdom > jsdom > request@2.88.2: 请求已经已弃用,请参阅 https://github.com/request/request/issues/3142

[2/4] 正在获取包...

error 发生意外错误:“C:\Users\username\AppData\Local\Yarn\Cache\v6\npm-micromatch-3.1.10-70859bc95c9840952f359a068a3fc49f9ecfac23-integrity\node_modules\micromatch\.yarn-metadata.json: JSON 中位置 0 的意外标记 \u0000 ".

info 如果您认为这是一个错误,请使用“F:\Web-Development\portfolio-site\yarn-error.log”中提供的信息打开错误报告。 info 访问 https://yarnpkg.com/en/docs/cli/add 获取有关此命令的文档。

正在中止安装。 yarnpkg add --exact react react-dom react-scripts cra-template --cwd F:\Web-Development\portfolio-site 失败。

正在删除生成的文件...package.json 正在删除生成的文件... yarn.lock

我的设置配置。 纱版: 1.22.10 节点版本: 14.15.2 版本: 6.14.9 反应也是最新的

看起来像是一个缓存问题,它可能已损坏,您可以尝试以下命令来解决这个问题:

yarn cache clean