使用npx create-react-app创建React应用失败

时间:2020-08-06 10:39:43

标签: reactjs npm 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

但是仍然出现相同的错误,这个问题有解决方案吗?谢谢!

1 个答案:

答案 0 :(得分:1)

NPM当前有问题,您可以在这里查看最新更新:https://status.npmjs.org/