【问题标题】:React App not install,show error abortion installationReact App 未安装,显示错误中止安装
【发布时间】:2020-10-29 21:39:06
【问题描述】:
  • 节点 --version => 14.5.0
  • npm --version => 6.14.6
  • create-react-app --version => 3.4.1
  • yarn --version => 1.22.4

我尝试了所有方法来解决这个问题,但都是徒劳的。我重新安装节点更新,每件事也咨询stackoverflow,但我无法解决这个问题....请帮助我....

【问题讨论】:

  • 请添加详细的错误日志。可能是权限问题

标签: node.js reactjs ecmascript-6


【解决方案1】:

欢迎使用 StackOverflow。

如果你幸运地访问了 create-react-app GitHub 存储库。 你可能已经发现 create-react-app 作为一个包并没有被弃用,因此你必须在这里使用 npx 东西。

create-react-app 官方要求你卸载 create-react-app 并使用 npx 脚本。

首先,卸载create-react-app

npm uninstall -g create-react-app

然后简单的运行下面的命令来创建一个新的 react-app

npx create-react-app my-app

然后您可以将目录更改为 my-app 并使用 npm 运行它。

cd my-app
npm start

【讨论】:

  • @MuhammadHusnain 好的,我明白了,您能否给我们提供更多信息,例如 npm 版本,如您所见,错误是 EPERM: Operation not allowed。
猜你喜欢
  • 2019-03-23
  • 1970-01-01
  • 2020-05-28
  • 2015-11-01
  • 1970-01-01
  • 2022-07-06
  • 1970-01-01
  • 2021-12-06
  • 2019-01-14
相关资源
最近更新 更多