【问题标题】:No matching version found for browserslist@^4.19.1未找到 browserslist@^4.19.1 的匹配版本
【发布时间】:2022-01-20 07:55:42
【问题描述】:

我在尝试运行 create-react-app 时收到此消息。 这发生在 VSC 终端和命令提示符上。我没有更改我电脑上的任何设置。

然后收到下面的消息,到目前为止我尝试的故障排除是卸载并重新安装 Node、create-react-app 和 VSC。


Creating a new React app in C:\Users\user1\test.

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 your browserslist@^4.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! A complete log of this run can be found at (**file location**)

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 text/ from C:\Users\user1
Done.

【问题讨论】:

    标签: node.js reactjs npm create-react-app


    【解决方案1】:

    试试这个命令

    npm cache clean --force
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-16
      • 2017-11-03
      • 2021-08-04
      • 2021-04-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多