Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webdriver-manager update command not working in 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

like image 239
Sudharsan Selvaraj Avatar asked Dec 02 '16 04:12

Sudharsan Selvaraj


3 Answers

An issue has been raised on GitHub: https://github.com/angular/webdriver-manager/issues/170

like image 161
Nicholas Albion Avatar answered Nov 04 '22 20:11

Nicholas Albion


Protractor 5 relies on node version 6.9.4 or higher so the issue is most likely your node version. You can either upgrade that or install an older version of protractor:

npm install -g [email protected]

like image 2
Kyle Krzeski Avatar answered Nov 04 '22 22:11

Kyle Krzeski


It's an issue with node v4.x.x, update to node v6.x.x and it should work.

like image 1
bersling Avatar answered Nov 04 '22 21:11

bersling