datso / react-native-pjsip

A PJSIP module for React Native.
http://datso.github.io/react-native-pjsip
GNU General Public License v3.0
272 stars 229 forks source link

Bug: yarn add/ npm install is failing more 80% of time #158

Closed krajay015 closed 5 years ago

krajay015 commented 5 years ago

I'm struggling in installing react-native-pjsip, most of the time it's taking time. I'm attaching screenshot of my terminal with yarn add react-native-pjsip screenshot 2018-12-16 at 9 23 25 pm__01

with: npm install --save react-native-pjsip screenshot 2018-12-16 at 9 23 48 pm__01

again I get an error with: curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github-production-release-asset-2e65be.s3.amazonaws.com:443

cmendes0101 commented 5 years ago

It's possible that the release gz file that is downloaded during install is hitting a timeout. I sometimes get this on slow internet. It's about 73mb or so

I don't remember if at that point your node_modules for react-native-pjsip file exists when this happens but what you can do is manually download the file, extract, create the lock file and then when you install(or update) it will skip the download via wget. The steps to follow are line 27: https://github.com/datso/react-native-pjsip/blob/master/libs.sh#L27.