背景:
Mac和Windows上都试过了,最进几个版本的开发者工具也试过了,都用相同的问题,也尝试在Stackoverflow等社区搜索过,推荐的几个方式都不行。应该和公司电脑配置的代理、Zscaler等网络工具等有关。
现象:
打开项目报错,只能游客模式打开,游客模式进入以后修改AppId也会失败
调试开发者工具以后看到很多类似以下的报错
write @ /Applications/wechatwebdevtools.app/Contents/Resources/package.nw/core.wxvpkg/0b6e4b3dce6396a86cf6febb45c187c3.js:7
node:internal/process/task_queues:93 Uncaught (in promise) Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1497)
at TLSSocket.emit (node:events:327)
at TLSSocket._finishInit (node:_tls_wrap:932)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:706)
node:internal/process/task_queues:93 Uncaught (in promise) Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1497)
at TLSSocket.emit (node:events:327)
at TLSSocket._finishInit (node:_tls_wrap:932)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:706)
node:internal/process/task_queues:93 Uncaught (in promise) Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1497)
at TLSSocket.emit (node:events:327)
at TLSSocket._finishInit (node:_tls_wrap:932)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:706)
/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/libs/vseditor/bundled/editor.bundled.js:2 unable to get local issuer certificate: Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1497:34)
at TLSSocket.emit (node:events:327:20)
at TLSSocket._finishInit (node:_tls_wrap:932:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:706:12)
尝试过的方案:
node.js - npm install error - unable to get local issuer certificate - Stack Overflow 这个回答里的几种npm命令都试过了,但是即便是在系统终端里敲npm全局配置命令,也解决不了这个问题
修改开发者工具里的本地设置->不校验不合法域名、web-view(业务域名)、TLS版本以及HTTPS证书,同样不行。
想求助一下,是不是可以增加一个选项,忽略这个ssl报错。
请问问题有解决吗