今天在运行react-native run-android命令时,出现如题的错误。
搜索stackoverflow,找到解决办法。
原因是8081端口被占用。查看一下占用此端口的进程,将这个进程杀掉就可以了
linux系统
lsof -n -i4TCP:8081 | grep LISTEN
windows系统
netstat -ano| find “8081”
问题得到解决。
今天在运行react-native run-android命令时,出现如题的错误。
搜索stackoverflow,找到解决办法。
原因是8081端口被占用。查看一下占用此端口的进程,将这个进程杀掉就可以了
lsof -n -i4TCP:8081 | grep LISTEN
netstat -ano| find “8081”
问题得到解决。