正在try 创建新应用

npx create-react-app my-test-app

在控制台中得到这个错误——毫不奇怪是esLint.tgz正在浏览器中404ing.你怎么避开这个?

运行npm 8.13.2和 node 18.4.0

似乎找不到任何类似的解决方案-也try 了清除缓存.有什么 idea 吗?

npx create-react-app my-test-app

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

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz - Not found
npm ERR! 404
npm ERR! 404  '@types/eslint@https://registry.npmjs.org/@types/eslint/-/eslint-8.4.4.tgz' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\<user>\AppData\Local\npm-cache\_logs\2022-06-30T19_58_36_128Z-debug-0.log

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

推荐答案

存储库错误@eslint,请参阅Github:https://github.com/DefinitelyTyped/DefinitelyTyped/issues/61032

Reactjs相关问答推荐

如何使用React Router创建响应式主详细信息应用程序?

Next.js-图像组件加载问题

将对象添加到集合中的数组时的no_id字段

在Reaction中更新状态时,我将变得未定义

react -在选项中 Select 我想要显示和图像.但当我 Select 该选项时,我希望控件仅显示该选项的文本部分

App.js中的H2组件不会动态呈现.这可能是什么问题?

梅X折线图无响应

在Reaction中的第一次装载时,Use Effect返回空数组

取消 Select 较高组件中的所有行

如何修复ReferenceError:在构建过程中未定义导航器

无法在 NextJS 中获取嵌套对象

在 useSelector() 中使用 array.map() 如何导致组件在分派操作时重新渲染?

Mui 在 TextField 标签上添加工具提示显示两个工具提示框

如何在 JS 中绘制具有不同笔画宽度的样条线

在 React-Select 中显示多值的倒序

如何禁用 redux-toolkit 的不可序列化值测试警告?

Select 建议后如何关闭 vscode 添加自动完成={}

如何避免在 react useEffect 上滚动时出现小的延迟?

错误:无效挂钩调用.钩子只能在函数组件的主体内部调用.使用 next/router 时

在 Remix 中使用 chartjs 和 react-chartjs-2 会出现错误react-chartjs-2未在您的 node_modules 中找到