简体   繁体   English

React-Native by Intellij IDEA

[英]React- Native by Intellij IDEA

How can I run React-Native apps by Intellij IDEA.如何通过 Intellij IDEA 运行 React-Native 应用程序。

Metro Bundler can't listen on port 8081 Metro Bundler 无法侦听端口 8081

when I change port, the same error given当我更改端口时,给出相同的错误

If you are really changing the port, you shouldn't receive the same error. 如果您确实要更改端口,则不应收到相同的错误。 This error generally happens because there is a process already running on this door, if you are using Linux, try fuser -k 8081/tcp, that will kill the process running on that door. 通常会发生此错误,因为此门上已经有一个进程在运行,如果您使用的是Linux,请尝试执行融合器-k 8081 / tcp,它将杀死在该门上运行的进程。

in my case, just remove the 'start React Native Bundler' before launch task.就我而言,只需在启动任务之前删除“启动 React Native Bundler”即可。

some other script will start the bundler too, so 8081 port is in use.其他一些脚本也将启动捆绑程序,因此正在使用 8081 端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM