有人可以帮助我在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
答案 0 :(得分:0)
通过npm脚本运行wct会删除错误。