【发布时间】:2021-01-06 18:20:06
【问题描述】:
操作系统:Windows
为了使用 npx 创建反应应用程序,我编写了以下命令:
npx create-react-app myapp
它显示了这个错误:
npm ERR! Could not install from "myusername\AppData\Roaming\npm-cache\_npx\19748" as it does not contain a package.json file.
我该如何解决?
【问题讨论】:
-
已经有关于这个的帖子了,例如:github.com/facebook/create-react-app/issues/4058 难道他们没有帮助吗?
-
亲爱的@Jayce444我已经尝试了答案中描述的方法,它对我有用,请检查,在github上他们建议使用npm全局安装它,但我想使用npx安装它跨度>
-
你使用哪个 NodeJS 版本 @SarthakBhagwat ?
-
@TasosBu v12.18.3
标签: node.js reactjs npm create-react-app npx