reactjs - 使用 npx create-react-app 创建反应应用失败
问题描述
我正在尝试通过使用命令使用 npx 创建一个 React 应用程序
npx create-react-app my-app
然后我得到了一堆错误,这就是说
error Couldn't find package "@svgr/webpack@4.3.3" required by "react-scripts" on the "npm" registry.
Error: Couldn't find package "@typescript-eslint/eslint-plugin@^2.10.0" required by "react-scripts" on the "npm" registry.
Error: Couldn't find package "@typescript-eslint/parser@^2.10.0" required by "react-scripts" on the "npm" registry.
Error: Couldn't find package "@xtuc/ieee754@^1.2.0" required by "@webassemblyjs/ieee754@1.8.5" on the "npm" registry.
Error: Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/leb128@1.8.5" on the "npm" registry.
Error: Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/wast-printer@1.8.5" on the "npm" registry.
Error: Couldn't find package "@xtuc/long@4.2.2" required by "@webassemblyjs/wast-parser@1.8.5" on the "npm" registry.
然后,安装中止,我已经尝试使用'清理 npm 缓存
npm cache clean --force
但它仍然得到同样的错误,有没有解决这个问题的方法?谢谢你!
解决方案
NPM 目前有问题,你可以在这里看到最新的更新:https ://status.npmjs.org/
推荐阅读
- angular - Angular/Typescript:编写一个工厂返回从基类派生的类型
- string - 在字符串中查找匹配项的开始和结束位置
- c - 如何链接应用程序以通过 RTEMS 进行动态加载?
- python - 将用户输入与方法 Python 进行比较的函数的问题
- android - 启动接收器在模拟器中不起作用
- php - 获取具有特定值的中继器中的特定行
- kubernetes - OpenEBS 中存储池的 hostdir 类型是什么?
- wso2 - WSO2 IS 5.1.0 - 使用 Soap 更新服务提供者时出错
- javascript - 让一些路由由 Groovy 处理,一些由 react-router v4 处理
- node.js - 无法从 AWS Lambda 中的回调函数向 API Gateway 发送更新的响应