【问题标题】:the system cannot find the file npx create-react-app myapp系统找不到文件 npx create-react-app myapp
【发布时间】:2020-06-29 06:04:24
【问题描述】:

要创建一个反应应用程序,当我使用

npx create-react-app myapp

我收到一个错误提示

"PS C:\Users\yashj\OneDrive\Desktop\messaging_app> npx create-react-app myapp
程序“npx.cmd”运行失败:系统找不到文件
指定行:1 字符:1
+ npx create-react-app myapp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~。
在 line:1 char:1
+ npx create-react-app myapp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [],
应用程序失败异常
+ FullyQualifiedErrorId : NativeCommandFailed"

我再次重新安装了 nodejs,但仍然出现同样的错误。

【问题讨论】:

标签: reactjs


【解决方案1】:

为了解决这个问题,我建议使用 PowerShell 中的命令 如果问题仍然存在,请安装新版本的 PowerShell,然后运行命令

【讨论】:

  • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-09-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-01-06
相关资源
最近更新 更多