簡體   English   中英

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

我在一台新計算機上並嘗試運行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.

看起來這是幾個小時前發布的 typescript-eslint 版本 2.19.1 中的一個已知錯誤,他們目前正在修復它:

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

更新:這是 NPM 的一個問題 - 可能還有其他版本受到影響。 https://status.npmjs.org/incidents/1dpd0zjyhj2v

不管怎樣,這個問題已經解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM