Many options have been set on win10, but the error is still reported: unable to verify the first certificate
$ yarn config list
yarn config v1.22.4
info yarn config
{
'version-tag-prefix': 'v',
'version-git-tag': true,
'version-commit-hooks': true,
'version-git-sign': false,
'version-git-message': 'v%s',
'init-version': '1.0.0',
'init-license': 'MIT',
'save-prefix': '^',
'bin-links': true,
'ignore-scripts': false,
'ignore-optional': false,
registry: 'http://npm.xxxxx.com',
'strict-ssl': false,
'user-agent': 'yarn/1.22.4 npm/?node/v12.22.1 win32 x64',
NODE_TLS_REJECT_UNAUTHORIZED: 0,
lastUpdateCheck: 1629361331003
}
info npm config
{
registry: 'http://npm.xxxxx.com',
CYPRESS_INSTALL_BINARY: 'https://npm.taobao.org/mirrors/cypress/5.6.0/darwin-x64/cypress.zip',
'//arch': 'ia32',
'//registry': 'https://registry.npm.taobao.org',
electron_mirror: 'https://npm.taobao.org/mirrors/electron/',
CHROMEDRIVER_CDNURL: 'http://npm.taobao.org/mirrors/chromedriver/',
sass_binary_site: 'https://npm.taobao.org/mirrors/node-sass/',
phantomjs_cdnurl: 'https://npm.taobao.org/mirrors/phantomjs',
'strict-ssl': false,
proxy: null,
'https-proxy': null,
'//npm.xxxxx.com/:_authToken': '8624c0fe-ea43-4f30-b113-617f22e9c6c6'
}
Solution:
NODE_TLS_REJECT_UNAUTHORIZED=0 yarn
Read More:
- Spark login error unable to verify certificate and certificate host name verification failed
- How to Fix SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- [SSL: CERTIFICATE_VERIFY_FAILED] Certificate Verify Failed (_ssl.C:579)
- Python uses requests to request and reports SSL: CERTIFICATE_VERIFY_FAILED error
- Git prompt error setting certificate verify locations
- ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- python3 request module https certificate verify failed error
- python:urllib2.URLError urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- URLError: urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)
- wget Error: ERROR: cannot verify nih.at’s certificate, issued by “/C=US/O=Let‘s Encrypt/CN=R3”
- cURL error 60: SSL certificate problem: self signed certificate in certificate chain
- GuzzleHttp cURL error 60: SSL certificate problem: self signed certificate
- Shell curl command reported an error: (60) SSL certificate problem: self signed certificate
- svn: E230001: Server SSL certificate verification failed: certificate issued
- Idea svn connection https error report: E230001: Server SSL certificate verification failed: certificate issued
- Was import certificate — error prompt: java.security.cert .CertPathValidatorException: Certificate chaining error
- Upgrade/reinstall win10 system–prompt the solution to fail to verify the key
- An error occurred when installing vs2017: failed to verify the signature of the installation program list
- Error 1310 Error writing to file:C:\Windows\…*.dll. Verify that you have access to that directory