Sudharsan Selvaraj
Sudharsan Selvaraj

Reputation: 4832

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

Upvotes: 9

Views: 10940

Answers (3)

Kyle Krzeski
Kyle Krzeski

Reputation: 6527

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]

Upvotes: 2

bersling
bersling

Reputation: 19312

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

Upvotes: 1

Nicholas Albion
Nicholas Albion

Reputation: 3284

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

Upvotes: 7

Related Questions