当我跑步时
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) { ^^^
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 ) 在 Module.load (module.js:357:32) 在 Function.Module._load (module.js:314:12) 在 Module.require (module.js:367:17) 在 require (internal/module.js :20:19) 在对象处。(/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)
我有错误。它在量角器不运行时启动。
错误是
但是这次更新版本,没有用。所以我在删除节点模块文件后做了 npm install, bower gulp install。
现在为 gulp 运行(我使用 gulp 运行量角器),我得到了这个
> 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
更新
我删除了所有节点模块并再次安装了 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 更新 ** 相同