使用 npx create-react-app 创建 React 应用程序失败
Create react app using npx create-react-app failed
我正在尝试通过命令
使用 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/
我正在尝试通过命令
使用 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/