create-react-app HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found

ltqd579y  于 2个月前  发布在  React
关注(0)|答案(4)|浏览(40)

你好,

根据你提供的错误信息,问题出在创建React应用时,@types/eslint这个依赖包没有被正确安装。你可以尝试以下方法解决这个问题:

  1. 删除node_modules文件夹和package-lock.json文件(如果有的话)。
  2. 重新运行npm install命令安装依赖。
  3. 再次尝试运行npx create-react-app user-react --template typescript命令创建新的React应用。

希望这能帮助到你!如有其他问题,请随时提问。祝好运!

相关问题