我刚刚在我的ubuntu 16开发服务器上安装了code-server 3.6.0,但是我在安装扩展和运行终端时遇到了问题:当我尝试安装一个扩展时,我得到了以下错误:
Error loading webview: Could not register service workers: SecurityError: Failed to register a ServiceWorker for scope ('https://mysite.xxx:8080/webview/') with script ('https://mysite.xxx:8080/webview/service-worker.js'): An SSL certificate error occurred when fetching the script..

当我通过命令行./bin/code-server运行代码服务器并登录到https://mysite.xxx:8080时,我得到了以下日志错误:

我尝试过npm rebuil和npm reinstall,但即使终端没有运行,问题也是一样的,它总是处于启动状态:

我之前使用的是2.3版本的code-server,它工作得很好,没有任何问题,我可以安装扩展和运行终端……
有没有人有这个问题?有人解决了吗?
发布于 2020-11-14 04:20:45
我已经完全删除了code-server,并下载了最新版本(在撰写本文时为3.6.2)。从./bin/code-server运行它,从~/.config/code-server/config.yml获取配置,它就可以工作了。有时仍然有SErviceWorker错误,但至少终端和主要扩展工作正常。
https://stackoverflow.com/questions/64403286
复制相似问题