简体   繁体   English

找不到与 @typescript-eslint/typescript-estree@5.36.1 匹配的版本

[英]No matching version found for @typescript-eslint/typescript-estree@5.36.1

I am trying to do 'npx create-react-app react-app' and all troubleshooting I have tried so far is receiving the following error:我正在尝试执行“npx create-react-app react-app”,到目前为止我尝试过的所有故障排除都收到以下错误:


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

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @typescript-eslint/typescript-estree@5.36.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2022-08-30T16_43_36_865Z-debug-0.log

Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting react-app/ from /Users/user/Malauzai/React-Practice/Ex_Files_React_js_EssT/Exercise Files/Ch04/04_01/start
Done.

From digging around a bit on stackoverflow and other sites, I see previous similar examples of failures that were due to a package from the author being bad.通过在 stackoverflow 和其他站点上进行一些挖掘,我看到了以前类似的失败示例,这些示例是由于作者的 package 不好造成的。 I see from the package's npmjs.com page that this latest version was just released 2 hrs ago or so.我从包的 npmjs.com 页面中看到,这个最新版本是大约 2 小时前刚刚发布的。 My guess is that there's an issue in this package causing my failures.我的猜测是这个 package 有问题导致我失败。 At this point I do not see an issue about this on the package's site ( https://github.com/typescript-eslint/typescript-eslint/issues ).在这一点上,我在包的站点( https://github.com/typescript-eslint/typescript-eslint/issues )上没有看到关于此的问题。 I was not having this or any issues when running create-react-app as of yesterday.截至昨天运行 create-react-app 时,我没有遇到此问题或任何问题。

I tried changing nvm version to 16.17.0 (LTS at this time), 16.14.0 and 14.18.1 in hopes that one of these would help pull in a previous version of the @typescript-eslint/typescript-estree library.我尝试将 nvm 版本更改为 16.17.0(此时为 LTS)、16.14.0 和 14.18.1,希望其中一个有助于引入 @typescript-eslint/typescript-estree 库的先前版本。 I have tried uninstalling and reinstalling create-react-app globally, restarting my system and running the script in different directories to see if perhaps something was corrupted.我已尝试在全局范围内卸载并重新安装 create-react-app,重新启动系统并在不同目录中运行脚本以查看是否有某些内容已损坏。 To this point, none of these things has helped.到目前为止,这些事情都没有帮助。

So I would like to ask: What other things would others suggest to perhaps address this issue or work around it in the mean time while a fix is issued?所以我想问一下:在发布修复程序的同时,其他人会建议什么其他事情来解决这个问题或解决这个问题?

It appears my suspicion is confirmed.看来我的猜想得到了证实。 NPM must have noticed the issue and fixed via rolling back the version of the affected package. NPM 一定已经注意到了这个问题,并通过回滚受影响的 package 的版本来修复。 After finally being able to run 'npx create-react-app react-app' successfully, I looked into the node_mudules installed with the project.在终于能够成功运行“npx create-react-app react-app”之后,我查看了与项目一起安装的 node_mudules。

By listing out installed node_modules via 'npm ls @typescript-eslint/typescript-estree' command I see that version 5.36.0 is nested under the react-scripts package.通过“npm ls @typescript-eslint/typescript-estree”命令列出已安装的 node_modules,我看到版本 5.36.0 嵌套在 react-scripts package 下。 The installs now complete and all is well.安装现已完成,一切正常。 Attached below is the dependency tree showing what I just mentioned.下面附上我刚才提到的依赖关系树。

└─┬ react-scripts@5.0.1
  └─┬ eslint-config-react-app@7.0.1
    ├─┬ @typescript-eslint/eslint-plugin@5.36.0
    │ ├─┬ @typescript-eslint/type-utils@5.36.0
    │ │ └── @typescript-eslint/typescript-estree@5.36.0 
    │ └─┬ @typescript-eslint/utils@5.36.0
    │   └── @typescript-eslint/typescript-estree@5.36.0  deduped

暂无
暂无

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

相关问题 找不到与 @typescript-eslint/scope-manager@4.22.1 匹配的版本 - No matching version found for @typescript-eslint/scope-manager@4.22.1 npm 错误。 notarget 找不到与@typescript-eslint/parser@5.4.0 匹配的版本 - npm ERR! notarget No matching version found for @typescript-eslint/parser@5.4.0 NPX create-react-app 找不到 @typescript-eslint/experimental-utils@2.19.1 的匹配版本 - NPX create-react-app cannot find a matching version for @typescript-eslint/experimental-utils@2.19.1 如何解决:“找不到规则'@typescript-eslint/consistent-type-assertions'的定义” - How to resolve: "Definition for rule '@typescript-eslint/consistent-type-assertions' was not found" @typescript-eslint/eslint-plugin 已安装,但在 vs code lint 任务中抛出错误并请求不存在的 @typescript-eslint 包 - @typescript-eslint/eslint-plugin installed but throw error in vs code lint task and ask for non existing @typescript-eslint package npm WARN @typescript-eslint/eslint-plugin@1.6.0 需要 typescript@* 的同级 - npm WARN @typescript-eslint/eslint-plugin@1.6.0 requires a peer of typescript@* 纱线 - 错误找不到与“5.31.0”匹配的“@typescript-eslint/type-utils”的任何版本 - Yarn - error Couldn't find any versions for "@typescript-eslint/type-utils" that matches "5.31.0" npm 错误! 尝试获取 http://registry.npmjs.org/@typescript-eslint%2feslint-plugin 时响应超时(超过 30000 毫秒) - npm ERR! Response timeout while trying to fetch http://registry.npmjs.org/@typescript-eslint%2feslint-plugin (over 30000ms) npm @types和TypeScript版本 - npm @types and TypeScript version TypeScript before() 和 after() 未找到 - TypeScript before() and after() not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM