【发布时间】:2022-01-20 01:04:27
【问题描述】:
我正在使用
npx create-react-app <app name>
我收到一个模板错误,没有提供,请执行以下操作 ->
npx uninstall -g create-react-app
嗯,我已经做到了,但没有帮助。我已经尝试更新当前的 nodejs 和 npm 版本,我已经完成了 nodejs 的全新安装,并且我已经清除了 npm 和 npx 缓存。我也尝试过使用特定的 create-react-app 版本,例如
npx create-react-app@latest(or some other version)
没有任何效果,没有提供任何模板,我有点迷茫。有谁知道另一种潜在的解决方法?如果存在这样的东西,我愿意手动下载包含 npx create-react-app 完成后内容的文件夹。
【问题讨论】: