量角器测试没有运行显示'奇怪的错误8'

时间:2016-03-17 09:45:17

标签: angularjs protractor

当我尝试使用sudo npm run protractor运行量角器测试时。它在终端中显示以下内容

> angular-seed@0.0.0 update-webdriver /home/krishna/projects/main/clients/web
> webdriver-manager update

selenium standalone是最新的。 chromedriver是最新的。

> angular-seed@0.0.0 protractor /home/krishna/projects/main/clients/web
> protractor e2e-tests/protractor.conf.js

[launcher]进程已退出,错误代码为1

  

/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/q/q.js:155                   扔掉;                         ^ SyntaxError:意外的令牌)       at goog.loadModuleFromSource_(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1123:19)       在Object.goog.loadModule(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1085:46)       at /home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6       at Object.Context.closure.goog.retrieveAndExecModule_(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/_base.js:135:8)       时间:1:6       在Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/base.js:104:12)       在Object.goog.importScript (/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:879:9)       at Object.goog.importModule_(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:900:14)       at Object.goog.writeScripts_(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1323:16)       at Object.goog.require(/home/krishna/projects/main/clients/web/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:663:14)   错误的ERR!奇怪的错误8 npm WARN这种失败可能是由于使用造成的   遗留二进制“节点”npm WARN如需进一步说明,请阅读   /usr/share/doc/nodejs/README.Debian npm ERR!不好的代码0

0 个答案:

没有答案