【问题标题】:NPX create-react-app cannot find a matching version for @typescript-eslint/experimental-utils@2.19.1NPX create-react-app 找不到 @typescript-eslint/experimental-utils@2.19.1 的匹配版本
【发布时间】:2020-05-26 04:25:33
【问题描述】:

我在新计算机上尝试运行npx create-react-app myapp,但收到此错误。没遇到过,好像少了es-lint包?

$ npx create-react-app my-app
npx: installed 99 in 4.157s

Creating a new React app in C:\Users\Name\Documents\demos\my-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/experimental-utils@2.19.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! notarget
npm ERR! notarget It was specified as a dependency of '@typescript-eslint/eslint-plugin'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Name\AppData\Roaming\npm-cache\_logs\2020-02-10T19_41_06_770Z-debug.log

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

Deleting generated file... package.json
Deleting my-app/ from C:\Users\Name\Documents\demos
Done.

【问题讨论】:

  • 尝试运行npm install -g create-react-app,然后尝试创建一个项目

标签: reactjs typescript npm npx


【解决方案1】:

看起来这是几个小时前发布的 typescript-eslint 版本 2.19.1 中的一个已知错误,他们目前正在努力修复它:

https://github.com/typescript-eslint/typescript-eslint/issues/1588

更新: 这是 NPM 的一个问题 - 并且可能有其他构建受到影响。 https://status.npmjs.org/incidents/1dpd0zjyhj2v

不管怎样,这个问题已经解决了。

【讨论】:

猜你喜欢
  • 2021-07-26
  • 2021-03-03
  • 2022-01-19
  • 2021-12-03
  • 1970-01-01
  • 2020-06-29
  • 1970-01-01
  • 2021-06-19
  • 2022-01-02
相关资源
最近更新 更多