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
An issue has been raised on GitHub: https://github.com/angular/webdriver-manager/issues/170
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]
It's an issue with node v4.x.x, update to node v6.x.x and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With