按照 中文官网 搭建环境的教程

使用 git bash 跟着一路执行下来,跑到 react-native init xxx 这一步时,形成了两种结果

  • Windows 10 企业版安装成功

  • Windows 10 家庭版安装失败
    react-native init xxx 出现 “yarn” 和 “npm” 不是内部指令的bug

到底是什么原因,还不清楚,要短暂且快速的解决这个问题

只能在 Windows 10 家庭版中,用 IDE 的 终端控制台 来替代 git bash

下面是用的 vscode 的 terminal 控制台,完美运行
react-native init xxx 出现 “yarn” 和 “npm” 不是内部指令的bug

相关文章:

  • 2021-09-10
  • 2021-12-02
  • 2021-07-31
  • 2021-04-03
  • 2021-11-21
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-07-09
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案