Azure devops 在Azure开发操作上使用weyland构建问题

Azure devops 在Azure开发操作上使用weyland构建问题,azure-devops,azure-pipelines,durandal,weyland,Azure Devops,Azure Pipelines,Durandal,Weyland,我用Durandal构建了一个应用程序,并使用Weyland来构建它。我已经在全局安装了Weyland,当我在本地运行命令Weyland build-c“path\to\config”时,它会工作并产生以下输出 info jshint Linting 6 files. info jshint Passed for App/cart/config.js. info jshint Passed for App/cart/main.js. info jshint Passed for Ap

我用
Durandal
构建了一个应用程序,并使用
Weyland
来构建它。我已经在全局安装了
Weyland
,当我在本地运行命令
Weyland build-c“path\to\config”
时,它会工作并产生以下输出

info jshint Linting 6 files.  
info jshint Passed for App/cart/config.js.  
info jshint Passed for App/cart/main.js.  
info jshint Passed for App/cart/services/datacontext.js.  
info jshint Passed for App/cart/viewmodels/cart.js.  
info jshint Passed for App/cart/viewmodels/nextsteps.js.  
info jshint Passed for App/cart/viewmodels/shell.js.  
info uglifyjs Uglifying 22 files.  
info uglifyjs Uglified App/cart/config.js.  
info uglifyjs Uglified App/cart/main.js.  
WARN: Dropping unused function argument c [null:22,32]
当我在Azure Dev Ops中运行相同的序列而不是
WARN
时,我得到了错误:

呃!uglifyjs类型错误:sys.error不是函数

堆栈跟踪:

ERR! uglifyjs TypeError: sys.error is not a function
ERR! uglifyjs     at Function.UglifyJS.AST_Node.warn_function (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\tools\node.js:42:9)
ERR! uglifyjs     at Function.AST_Node.warn (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\ast.js:110:18)
ERR! uglifyjs     at Compressor.warn (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\compress.js:81:27)
ERR! uglifyjs     at TreeTransformer.before (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\compress.js:956:44)
ERR! uglifyjs     at AST_Defun.transform (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\transform.js:61:35)
ERR! uglifyjs     at C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\transform.js:80:25
ERR! uglifyjs     at doit (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\utils.js:114:23)
ERR! uglifyjs     at MAP (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\utils.js:140:52)
ERR! uglifyjs     at do_list (C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\transform.js:79:16)
ERR! uglifyjs     at C:\npm\prefix\node_modules\weyland\node_modules\uglify-js\lib\transform.js:168:21
正在使用执行生成

我的计算机和管道都配置了

Node v12.16.2 
NPM 6.14.4

为什么Azure管道VM无法显示警告?如何修复此问题?

由于您没有共享配置的任务定义,我猜您在选中“标准错误失败”选项时遇到了此错误

因为如果我选择了这个选项,我会和你面临同样的问题

但是,如果我取消选中“标准错误失败”,这个意外问题就会消失


因此,要解决此问题,请确保未选中命令行任务的选项“标准错误失败”

谢谢您的回答,但问题不会消失。唯一的区别是任务没有报告为失败。如果你看第二个屏幕截图,任务在第73行仍然失败,weyland构建实际上没有成功complete@JonasStawski哦,那是我期待的错误。顺便问一下,您是在Azure DevOps中使用Hosted agent还是private agent?Hosted agent
Node v12.16.2 
NPM 6.14.4