404尝试使用Create-React-App安装ESLINT 8.4.4时找不到
每当我尝试运行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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
NPM上的v.8.4.4有一个问题,
更改您的软件包。JSON并改用8.4.3!
将其固定在
https://classic.yarnpkg.com/ 对于 npm
“ :
我如何覆盖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
or "overrides" for npm
more info about overriding values in NPM:
How do I override nested NPM dependency versions?
more about issue (check it here):
这不是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 tutorialOr you can wait until the package is fixed.