运行webdriver-manager update命令时出现以下错误。以下是控制台上显示的错误。
I am using the below versions for your reference
npm version - 2.5.11
protractor - 5.3.1
Console Ouput
==============
C:\Users\XXXXXXXX>webdriver-manager update
webdriver-manager: using global installed version 12.0.6
C:\Users\XXXXXXX\AppData\Roaming\npm\node_modules\webdriver-manager\built\lib\c
li\logger.js:67
info(...msgs) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
Please advise on this issue.
答案 0 :(得分:0)
您需要将nodejs升级为nodejs 8.x