webdriver-manager 10.2.9 上的语法错误 [英] Syntax error on webdriver-manager 10.2.9

查看:50
本文介绍了webdriver-manager 10.2.9 上的语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自问题#170的帖子:

更新到最新版本后,我在运行webdriver-manager"命令时出现以下错误.

After updating to the newest version, I get the following error on running '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)

推荐答案

为什么会这样?版本 10.2.9 需要节点 6,并且由于它没有遵循语义版本控制/导致了一个大问题,因此它从 npm 中取消发布,并且 10.2.10 已经发布.要了解有关 10.2.10 的更多信息,请参阅变更日志.

Why is this happening? Version 10.2.9 requires node 6 and since it did not follow semantic versioning / caused a big problem, it was unpublished from npm and 10.2.10 has been published. To read more about 10.2.10, see the changelog.

如果您遇到此问题,请删除 node_module/webdriver-manager 并重新执行 npm install.

If you have encountered this issue, please remove the node_module/webdriver-manager and do a fresh npm install.

这篇关于webdriver-manager 10.2.9 上的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆