Search code examples
react-nativeelectronreact-devtools

Unable to install electron using npm and yarn for react devtool


I'm trying to install electron using both npm(npm install electron) and yarn but stuck into a bottleneck issue. PFB the error msg

Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (_tls_wrap.js:1473:34)
    at TLSSocket.emit (events.js:311:20)
    at TLSSocket._finishInit (_tls_wrap.js:916:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:686:12) {
  code: 'SELF_SIGNED_CERT_IN_CHAIN'
}

So, in order to bypass ssl I ran the command npm config set strict-ssl=false and tried again.

Butr now, I get a new error.

ChecksumMismatchError: Generated checksum for 
"electron-v5.0.13-darwin-x64.zip" did not match expected checksum.

PFB the versions I'm using.

Node - v12.16.1

npm - 6.13.4

OS - macOS mojave 10.14.16


Solution

  • Found the solution. It was the firewall's issue. Temporarily disabled it to proceed with the installation.