npm install react-native-webrtc failed

293 Views Asked by At

npm install react-native-webrtc --save

C:\Windows\system32\cmd.exe /d /s /c node tools/downloadWebRTC.js
npm ERR! Downloading https://github.com/jitsi/webrtc/releases/download/v106.0.1/android-webrtc.zip...
npm ERR! node:internal/process/promises:246
npm ERR!           triggerUncaughtException(err, true /* fromPromise */);
npm ERR!           ^
npm ERR!
npm ERR! Error: read ECONNRESET
npm ERR!     at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20) {
npm ERR!   errno: -4077,
npm ERR!   code: 'ECONNRESET',
npm ERR!   syscall: 'read'
npm ERR! }

jdk:1.8; node:16.12.0; how can i fix it up?

1

There are 1 best solutions below

1
On

Try this command.

npm config set registry http://registry.npmjs.org/

if not run this

npm config get proxy
npm config rm proxy
npm config rm https-proxy