webdriver-manager update command not working in protractor

时间:2016-12-02 04:59:26

标签: selenium-webdriver npm protractor

From today morning I am facing an issue while using the command webdriver-manager update. After doing npm install,when I run webdriver-manager update it is giving me the below error

/Users/sudharsan/dev/unifing/services/data-integration/unifi_www/datai/static/angular/test/e2e/node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/logger.js:66
info(...msgs) {
     ^^^

SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/sudharsan/dev/unifing/services/data-integration/unifi_www/datai/static/angular/test/e2e/node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/index.js:8:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

The above issue occurs in both Mac OS and in Debian.

protractor version im using is 4.0.9

3 个答案:

答案 0 :(得分:7)

答案 1 :(得分:2)

量角器5依赖于节点版本6.9.4或更高版本,因此问题很可能是您的节点版本。您可以升级它或安装旧版本的量角器:

npm install -g protractor@4.0.13

答案 2 :(得分:1)

这是节点v4.x.x的问题,更新到节点v6.x.x并且它应该可以工作。