首页 > 解决方案 > 反应原生不启动地铁捆绑器

问题描述

我正在尝试运行一个反应本机代码是 VS 代码。我给了命令npx react-native start以下用途出现

Running Metro Bundler on port 8081.                                         │
│                                                                              │
│  Keep Metro running while developing on any JS projects. Feel free to        │
│  close this tab and run your own Metro instance if you prefer.               │
│                                                                              │
│  https://github.com/facebook/react-native  

Looking for JS files in
   /Users/Siva/Desktop/RHcode/Liba 

Loading dependency graph, done.

To reload the app press "r"
To open developer menu press "d"

我尝试运行的代码是在 2020 年开发的,我现在正在通过一些 npm 版本和包更改对其进行更新。

当我在 react native 中创建一个演示新项目时,我给出的命令npx react-native start是我正在获取 Metro bundler 符号,如下所示 [![enter image description here][1]][1]

如何克服在端口 8081 上运行 Metro Bundler。[1]:https ://i.stack.imgur.com/05Lhu.png

标签: androidiosreact-native

解决方案


推荐阅读