【问题标题】:I am unable to create react app using npx我无法使用 npx 创建反应应用程序
【发布时间】:2020-07-14 16:00:37
【问题描述】:

我在 Windows 中创建 React 应用程序时遇到问题,希望你们能帮助我.. 我已经在超级终端中写了这个命令 npx create-react-app new-app 我检查了我的 node.js 版本是 12.16.1,我的 npm 版本和 npx 版本都是 6.14.4。 我不知道为什么我总是收到这个错误

Error: EPERM: operation not permitted, mkdir 'C:\Users\Deepak'
command not found: create-react-app

【问题讨论】:

标签: node.js reactjs npm create-react-app npx


【解决方案1】:

第一步

运行以下命令

npm install -g create-react-app

第二步

运行以下命令

npx create-react-app my-app

【讨论】:

  • 如果我们全局安装create-react-app,那么为什么要使用npx?应该有更好的解决方案,而不是全局安装包,然后全局使用。
  • 嘿,Deepak,我也遇到了同样的问题。你有没有找到解决这个问题的方法?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-09-16
  • 2022-10-20
  • 2020-10-31
  • 2022-07-11
  • 1970-01-01
  • 2022-07-31
相关资源
最近更新 更多