React Native 无法打开“launchPackager.command”,因为(null)不允许在终端中打开文档

bvn4nwqk  于 2023-02-09  发布在  React
关注(0)|答案(1)|浏览(954)

我尝试使用react-native run-android命令从Visual Studio Code自己的终端运行react-native项目,但收到以下错误:

如何在MacMini中使用Visual Studio代码解决错误“launchPackager.command” can’t be opened because (null) is not allowed to open documents in Terminal.

exdqitrt

exdqitrt1#

我的解决方案是禁用SIP保护,直到苹果推出解决这个问题的方法,我遵循了以下步骤:

  • 按住电源按钮, Boot 至恢复模式
  • 从公用设施访问终端
  • 类型csrutil禁用
  • 重启

相关问题