运行 web-component-tester 离线

Running web-component-tester offline

我使用 npm install -g web-component-tester 安装了 web-component-server。之后,我 运行 wct 进行了一个我只在 chrome 写过的简单测试。随后,我搬到了一个无法一直连接到互联网的环境中。因为我已经 运行 wct 一次,我希望它再次 运行。但是重新 运行 命令 wct --verbose -l chrome 给出了以下错误:

Error: Could not request headers from https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win64.zip
: Error: getaddrinfo EAI_AGAIN github.com:443

似乎需要 Mozilla selenium 驱动程序,我什至没有在我的命令中指定 运行!我该如何解决?

您可以跳过安装检查(只能在线使用) wct --skip-selenium-install