我的机器当前遇到的问题是,只要机器重新启动或webdriver-manager窗口关闭,就需要重新安装NPM(+ webdriver-manager)。
我可以使用以下行更新webdriver-manager:
webdriver-manager --ignore_ssl update --ie32
由于我在不同的位置工作,我只能通过远程桌面连接访问本机,当我尝试使用同一行时,我收到以下错误:
C:\Windows\System32>webdriver-manager --ignore_ssl update --ie32
[10:32:27] I/http_utils - ignoring SSL certificate
[10:32:27] I/http_utils - ignoring SSL certificate
[10:32:27] I/http_utils - ignoring SSL certificate
[10:32:27] I/http_utils - ignoring SSL certificate
events.js:160
throw er; // Unhandled 'error' event
^
Error: tunneling socket could not be established, statusCode=407
at ClientRequest.onConnect (C:\Users\ng66ed6\AppData\Roaming\npm\node_module
s\protractor\node_modules\tunnel-agent\index.js:166:19)
at ClientRequest.g (events.js:291:16)
at emitThree (events.js:116:13)
at ClientRequest.emit (events.js:194:7)
at Socket.socketOnData (_http_client.js:394:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:551:20)
非常感谢任何建议或可能的解决方法。 :)
注意:Node.js CMD以管理员身份运行