【发布时间】:2023-10-17 08:41:01
【问题描述】:
我在我的电脑上安装了 jshint:
npm install -g jshint
没有错误。从任何目录中的命令提示符键入:
jshint -v
显示:
jshint v2.6.0
我还安装了 TeamCity 9.0.2,并使用此“命令行”构建步骤进行构建配置:
jshint -v
但是构建失败并且构建日志说:
[17:43:06]Step 1/7: Command Line
[17:43:06][Step 1/7] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script1904467346557960405.cmd
[17:43:06][Step 1/7] in directory: C:\TeamCity\buildAgent\work\494a4c7f8e6d54de
[17:43:06][Step 1/7] 'jshint' is not recognized as an internal or external command,
[17:43:06][Step 1/7] operable program or batch file.
[17:43:06][Step 1/7] Process exited with code 1
[17:43:06][Step 1/7] Step Command Line failed
如何让 jshint 从 TeamCity 运行?
【问题讨论】: