React Native的Expo需要将react-native的依赖关系格式化为:
"dependencies": {
"expo": "^30.0.1",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz"
}
当我使用 npm install
更新节点包时,我收到以下错误
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz failed, reason: self signed certificate in certificate chain
这只发生在我的世博项目中 . 我可以在其他节点项目中使用npm install而不会出现任何自签名证书问题 .
如何删除自签名证书?否则,如何在不完全禁用SSL的情况下解决此错误?
我已经尝试了 npm config set ca ""
以及将npm升级到最新版本 .