404尝试使用Create-React-App安装ESLINT 8.4.4时找不到

发布于 2025-02-11 23:28:01 字数 377 浏览 1 评论 0原文

每当我尝试运行npx create-react-app my-app时,它都会显示出错误:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404 
npm ERR! 404  '@types/eslint@http://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.

当我尝试像eslint-8.4.0.tgz一样,我可以下载它,但是8.4.4只是不存在。

Whenever I try to run npx create-react-app my-app, it shows the error:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404 
npm ERR! 404  '@types/eslint@http://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.

When I try like eslint-8.4.0.tgz I can download it but 8.4.4 just doesn't exist.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

依 靠 2025-02-18 23:28:01

NPM上的v.8.4.4有一个问题,

更改您的软件包。JSON并改用8.4.3!

将其固定在

  "resolutions": {
    "@types/eslint": "8.4.3"
  }

https://classic.yarnpkg.com/ 对于 npm

  "overrides": {
    "@types/eslint": "8.4.3"
  }

“ :
我如何覆盖NPM依赖的NPM依赖性版本?

有关问题的更多信息(在此处检查):

There is an issue with v.8.4.4 on the NPM

Change your package.json and use 8.4.3 instead!

Pin it in "resolutions" for yarn

  "resolutions": {
    "@types/eslint": "8.4.3"
  }

or "overrides" for npm

  "overrides": {
    "@types/eslint": "8.4.3"
  }

more info about overriding values in NPM:
How do I override nested NPM dependency versions?

more about issue (check it here):

something went wrong

淡莣 2025-02-18 23:28:01

这不是React的问题,而是软件包@types/eslint的问题。好像该软件包的不良版本已升级,并且无法下载。
为了解决问题,您可能需要创建一个React应用,而无需使用create-react-app。为此,请尝试使用以下教程

或您可以等到固定包装。

It is not a problem of React, but a problem of a package @types/eslint. Seems like the bad version of the package was upgraded and it's not downloadable.
To solve the issue, you may want to create a react app, without using create-react-app. To do this, try to use the following tutorial

Or you can wait until the package is fixed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文