解决方案有二:
方案一
在webstorm命令行输入react-native start,出现以下错误,表示端口被占用:
运行React Native项目报:error calling appregistry.run application
然后在命令窗口查找占用8081端口的程序并关闭。
查找命令 netstat -ano|find “8081”
运行React Native项目报:error calling appregistry.run application
可以看到端口“8081”被PID(进程号)为7960的进程占用。
想查看是什么程序占用,输入命令 tasklist|findstr “7960”
运行React Native项目报:error calling appregistry.run application
关闭占用的程序,输入命令 taskkill /pid 7960
运行React Native项目报:error calling appregistry.run application

方案二
重启电脑,重新打开webstorm,重新运行项目。OK!

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-12-19
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-07-05
  • 2021-04-03
  • 2021-12-24
  • 2021-09-10
相关资源
相似解决方案