Syntax error in webdriver-manager 10.2.9

Message from issue # 170 :

After upgrading to the latest version, I get the following error when running the "webdriver-manager" command.

C:\Users\(user)\AppData\Roaming\npm\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. (C:\Users\(user)\AppData\Roaming\npm\node_modules\we
bdriver-manager\built\lib\cli\index.js:8:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
+4
source share
2 answers

Why is this happening? Version 10.2.9 requires node 6, and since it did not follow the semantic version / caused a big problem, it was not published from npm and 10.2.10 was published. For more information about 10.2.10 see at changelog .

If you encounter this problem, delete node_module/webdriver-managerand make a new one npm install.

+3
source

webdriver 9.0:

npm install -g webdriver-manager@9.0
+2

Source: https://habr.com/ru/post/1662619/


All Articles