React-Native:无法获得本地发行者证书

时间:2020-05-29 05:07:45

标签: reactjs react-native npm expo

request to https://registry.npmjs.org/expo-template-blank failed, reason: unable to get local issuer certificate
FetchError: request to https://registry.npmjs.org/expo-template-blank failed, reason: unable to get local issuer certificate
at ClientRequest. (C:\Users<username>\AppData\Roaming\npm\node_modules\expo-cli\node_modules\minipass-fetch\lib\index.js:97:14)
at ClientRequest.emit (events.js:210:5)
at TLSSocket.socketErrorListener (_http_client.js:406:9)
at TLSSocket.emit (events.js:215:7)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

有人有什么想法吗?

疲倦于以下步骤:

  1. npm配置集注册表http://registry.npmjs.org/
    1. npm config设置strict-ssl false
    2. NODE_TLS_REJECT_UNAUTHORIZED = 0

0 个答案:

没有答案