【发布时间】:2020-09-16 14:48:10
【问题描述】:
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)
有人知道吗?
以下步骤很累:
- npm 配置集注册表http://registry.npmjs.org/
- npm config set strict-ssl false
- NODE_TLS_REJECT_UNAUTHORIZED =0
【问题讨论】:
-
你有解决这个问题的办法吗?我也面临同样的问题。
标签: reactjs react-native npm expo