执行“webdriver-manager update”命令时Logger.js(info(... msgs))出错

时间:2018-04-23 06:01:29

标签: angularjs protractor

运行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.

1 个答案:

答案 0 :(得分:0)

您需要将nodejs升级为nodejs 8.x