【问题标题】:Running web-component-tester on TeamCity在 TeamCity 上运行 web-component-tester
【发布时间】:2017-03-06 12:48:38
【问题描述】:

有人可以帮我在 teamcity 上运行 wct。我已经配置了 buld,但是在运行 wct 时出现以下错误:

[12:15:54][Step 1/1] /opt/jetbrains/TeamCityAgent/work/f73ec8c1325df542/node_modules/web-component-tester/bin/wct:21
[12:15:54][Step 1/1]     promise.then(() => process.exit(0), () => process.exit(1));
[12:15:54][Step 1/1]                   ^
[12:15:54][Step 1/1] SyntaxError: Unexpected token )
[12:15:54][Step 1/1]     at exports.runInThisContext (vm.js:73:16)
[12:15:54][Step 1/1]     at Module._compile (module.js:443:25)
[12:15:54][Step 1/1]     at Object.Module._extensions..js (module.js:478:10)
[12:15:54][Step 1/1]     at Module.load (module.js:355:32)
[12:15:54][Step 1/1]     at Function.Module._load (module.js:310:12)
[12:15:54][Step 1/1]     at Function.Module.runMain (module.js:501:10)
[12:15:54][Step 1/1]     at startup (node.js:129:16)
[12:15:54][Step 1/1]     at node.js:814:3

【问题讨论】:

    标签: teamcity web-component-tester wct


    【解决方案1】:

    通过 npm 脚本运行 wct 可以消除错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-29
      • 2015-12-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多