我尝试在我的本机项目中安装模块PJSIP。
URL:https://www.npmjs.com/package/react-native-pjsip
但是我遇到了错误。
> [email protected] postinstall /Users/saty/react-native-pjsip
> bash libs.sh
npm WARN [email protected] requires a peer of react-native@>=0.55 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN The package react is included as both a dev and production dependency.
npm ERR! code ELIFECYCLE
npm ERR! errno 23
npm ERR! [email protected] postinstall: `bash libs.sh`
npm ERR! Exit status 23
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
错误23通常是网络问题。如果您看一下脚本,它将尝试从存储库中下载软件包2.8.0,但是该存储库没有任何已发布的发行版,因此这就是失败的原因。您应该与所有者联系,创建问题或使用其他模块。