无法运行webdriverpipe理器

当我跑步

vegan @ vegan:〜/ xx-xx / gateway $ webdriver-manager start /usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/logger.js:66 info(… msgs){ ^^^

在Module._compile(module.js:387:25)上的Import.runInThisContext(vm.js:53:16)上,在Object.Module._extensions..js(module.js:422:10)处,SyntaxError:Unexpected token … )在Module.load(module.js:357:32)在Module.require(module.js:367:17)在Function.Module._load(module.js:314:12)在要求(内部/ module.js :20:19)在Object。 (/usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/index.js:8:10)在Module._compile(module.js:413:34)在Object.Module._extensions。 .js(module.js:422:10)

我有错误。 量angular器不运行时开始。

错误是这样的

量angular器错误selenium弹簧启动

但这次更新版本,没有工作。 所以我没有npm安装,鲍尔gulp安装后,我删除节点模块文件。

现在为了运行(我使用吞咽量angular器),我得到了这个

> gulp protractor prod [15:47:58] Using gulpfile > ~/xx-xx/gateway/gulpfile.js [15:47:58] Starting 'protractor'... > [15:47:58] Starting 'prod'... [15:47:58] Finished 'prod' after 547 μs > Using ChromeDriver directly... [launcher] Running 1 instances of > WebDriver [launcher] Error: SyntaxError: Unexpected token ... > at exports.runInThisContext (vm.js:53:16) > at Module._compile (module.js:387:25) > at Object.Module._extensions..js (module.js:422:10) > at Module.load (module.js:357:32) > at Function.Module._load (module.js:314:12) > at Module.require (module.js:367:17) > at require (internal/module.js:20:19) > at Object.<anonymous> (/home/vegan/xx-xx/gateway/node_modules/jasminewd2/index.js:7:17) > at Module._compile (module.js:413:34) > at Object.Module._extensions..js (module.js:422:10) [launcher] Process exited with error code 100 [15:47:59] gulp-notify: [JHipster > Gulp Build] Error: protractor exited with code 100 [15:47:59] Finished > 'protractor' after 1.19 s [15:47:59] E2E Tests failed 

UPDATE

我删除了所有节点模块,并再次安装npm。 现在,当我做** webdriver-manager它给出错误**

 webdriver-manager /usr/lib/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:387:25) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/lib/node_modules/protractor/node_modules/webdriver-manager/built/lib/cli/index.js:8:10) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10)** 

**

或者** webdriver-manager更新**相同

这是由于您使用的是旧版本的节点。 请将您的节点版本更新为最小。 6.9.x并尝试它肯定会工作。