【问题标题】:node tools/downloadWebRTC.js command fails when installing "react-native-webrtc" package安装“react-native-webrtc”包时节点工具/downloadWebRTC.js 命令失败
【发布时间】:2023-01-14 21:06:18
【问题描述】:

我正在尝试安装包“react-native-webrtc”但出现此错误(yarn install react-native-webrtc --verbose):

react-native-webrtc
verbose 189.970120017 Error: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc: Command failed.
Exit code: 1
Command: node tools/downloadWebRTC.js
Arguments:
Directory: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc
Output:
Downloading https://github.com/jitsi/webrtc/releases/download/v100.0.0/WebRTC.xcframework.tgz...
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: connect ECONNREFUSED 185.199.108.133:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '185.199.108.133',
  port: 443
}
    at ProcessTermError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:721:66)
    at ProcessTermError.MessageError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:750:123)
    at new ProcessTermError (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:790:113)
    at ChildProcess.<anonymous> (/usr/local/Cellar/yarn/1.22.4/libexec/lib/cli.js:25884:17)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:390:28)
    at Pipe.<anonymous> (node:net:687:12)
error /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc: Command failed.
Exit code: 1
Command: node tools/downloadWebRTC.js
Arguments:
Directory: /Users/samwin/dev/MobileAgent/node_modules/react-native-webrtc
Output:
Downloading https://github.com/jitsi/webrtc/releases/download/v100.0.0/WebRTC.xcframework.tgz...
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: connect ECONNREFUSED 185.199.108.133:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',

文件夹 react-native-webrtc 存在于 node_modules 中,但是当我尝试在 Xcode 中构建应用程序时,它会抛出如 here 所述的错误。

顺便说一句:我可以在浏览器中打开 url 时下载文件。

这个问题有什么解决办法吗?

【问题讨论】:

    标签: ios xcode react-native react-native-webrtc


    【解决方案1】:

    我的解决方案是手动下载 .tgz 文件(实际上应该在 tools/downloadWebRTC.js 中完成)并将其解压缩到相应位置。现在 Xcode 构建工作正常。

    【讨论】:

      【解决方案2】:

      关于这个问题的任何更新我得到了同样的错误。 请帮我。

      【讨论】:

        猜你喜欢
        • 2020-03-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-08
        • 1970-01-01
        • 1970-01-01
        • 2019-04-18
        • 2022-12-14
        相关资源
        最近更新 更多