android - 反应原生不启动地铁捆绑器
问题描述
我正在尝试运行一个反应本机代码是 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
解决方案
推荐阅读
- spring - 如何对子属性中包含的 ID 进行复杂的 @PreAuthorize 检查?
- rust - 具有可变引用的递归结构中的生命周期
- templates - 在生产站点中为 getTemplate lsit 调用 Docusign API 失败?
- rundeck - 有没有办法使用非登录用户来运行 Rundeck 作业?
- php - WampServer, mysqli_connect (HY000/1045) 拒绝用户访问
- javascript - 无法读取 null 的属性“角色”
- javascript - 从 HTML 输入中获取日期以在 JS 中使用
- mysql - 优化二级索引和日期范围查询
- scala - 尝试失败时的短路映射操作
- c# - 我的 NLog 记录没有保存。我在哪里可以看到我的 NLog 保存失败?