Build SDK with customized webrtc

I tried to build Jitsi sdk with custom webrtc lib but when I fork react-native-webrtc repo then npm install the Jitsi sdk from latest source code I get error below

ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: jitsi-meet @ 0.0.0

npm ERR! Found: react @ 16.12.0

npm ERR! node_modules/react

npm ERR! react @" 16.12 " from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer react @" 16.9.0 " from react-native @ 0.61.5-jitsi.2

npm ERR! node_modules/react-native

npm ERR! react-native @" github:jitsi/react-native#891986ec5ecaef65d1c8a7fe472f86cf84fe7551 " from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry

npm ERR! this command with --force, or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I changed package.js file from

“react-native-webrtc”: “github:react-native-webrtc/react-native-webrtc#d58dbb5599e16f7bdc918a9f384e36946187a5d6”,


“react-native-webrtc”: “github:yangtran093/react-native-webrtc#d58dbb5599e16f7bdc918a9f384e36946187a5d6”, <= forked without change

Any help would be appreciated!

Your nodejs is rather new. Try

npm install --legacy-peer-deps

it worked for me.