首页 文章

使用npm进行本机设置

提问于
浏览
0

我是新来的本地和npm的反应 . 我想为我的iPhone安装一个演示来试用WebRTC . 我想安装这个:https://github.com/oney/RCTWebRTCDemo

但是,我对设置的步骤非常困惑,我期望的是执行以下步骤,但似乎没有用 .

  • react-native init RCTWebRTCDemo --version 0.29.0

  • npm install https://github.com/oney/RCTWebRTCDemo.git

  • npm开始

  • 将iPhone设备连接到Mac

  • 打开iOS文件夹/ RCTWebRTCDemo.xcodeproj

  • 运行并构建Xcode

你能帮忙解决一下正确的步骤吗?非常感谢 .

1 回答

  • 0

    首先,确保您已 npm install -g react-native-cli 安装了 React Native CLI .

    然后做以下事项:

    • git clone https://github.com/oney/RCTWebRTCDemo.git

    • cd RCTWebRTCDemo

    • npm install

    • react-native run-iosreact-native run-android

相关问题