我们有TFS2015和构建定义,如下所示:
当我触发构建时,我得到错误的字符编码输出:
2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ readable-stream@2.1.5 (buffer-shims@1.0.0, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.2, util-deprecate@1.0.2, process-nextick-args@1.0.7, isarray@1.0.0)
2016-09-07T11:40:29.2722404Z run-sequence@1.2.2 node_modules\run-sequence
2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ chalk@1.1.3 (supports-color@2.0.0, escape-string-regexp@1.0.5, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)
2016-09-07T11:40:29.2722404Z vinyl-source-stream@1.1.0 node_modules\vinyl-source-stream
2016-09-07T11:40:29.2722404Z Γö£ΓöÇΓöÇ vinyl@0.4.6 (clone-stats@0.0.1, clone@0.2.0)
2016-09-07T11:40:29.2722404Z ΓööΓöÇΓöÇ through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.34)
2016-09-07T11:40:29.2722404Z gulp-concat@2.6.0 node_modules\gulp-concat
2016-09-07T11:40:29.2762404Z Γö£ΓöÇΓöÇ concat-with-sourcemaps@1.0.4 (source-map@0.5.6)
2016-09-07T11:40:29.2762404Z ΓööΓöÇΓöÇ through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.34)
2016-09-07T11:40:29.2762404Z vinyl-buffer@1.0.0 node_modules\vinyl-buffer
2016-09-07T11:40:29.2762404Z Γö£ΓöÇΓöÇ through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.34)
知道怎么解决吗?
编辑:当我登录到Build Server VM并从命令提示符运行npm install时,我得到了正确的输出:
run-sequence@1.2.2 node_modules\run-sequence
└── chalk@1.1.3 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1)
merge-stream@1.0.0 node_modules\merge-stream
└── readable-stream@2.1.5 (inherits@2.0.3, buffer-shims@1.0.0, string_decoder@0.10.31, process-nextick-args@1.0.7, util-deprecate@1.0.2, core-util-is@1.0.2, isarray@1.0.0)
vinyl-source-stream@1.1.0 node_modules\vinyl-source-stream
├── vinyl@0.4.6 (clone-stats@0.0.1, clone@0.2.0)
└── through2@0.6.5 (xtend@4.0.1, readable-stream@1.0.34)
DEV-MACHINE ENVIRONMENT:
OS Name: Microsoft Windows 10 Enterprise Active code page: 437 (both build server and dev machine) System Locale: sk;Slovak Node version: 5.10.1 NPM version: 3.8.5
构建服务器环境
OS Name: Microsoft Windows Server 2012 R2 Standard Active code page: 437 (both build server and dev machine) System Locale: en-us;English (United States) Node version: 5.10.1 NPM version: 3.8.5
TFS版本是14.102.25423.0(更新3),但它驻留在我无法访问的另一台服务器上。我只看到了webportal。
重现的步骤: