我正在尝试通过命令使用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
但是仍然出现相同的错误,这个问题有解决方案吗?谢谢!