TFS 构建代理找不到 npm

标签 tfs tfsbuild

在本地托管的 TFS 上,我在构建定义中使用“npm install”构建步骤。

在我安装的代理机器上nodejs并且可以运行 npm从命令行。

当我尝试对构建进行排队时,我会弹出一条消息:

No agent could be found with the following capabilities: npm, DotNetFramework



所以我尝试添加功能,首先刷新代理功能,当没有效果时,我添加了一个功能:

npm C:\Program Files\nodejs



然后构建开始,但 npm 步骤抛出错误:

Unable to locate npm



我怀疑我在代理设置中遗漏了一些东西,因为代理没有报告其 npm 功能?

最佳答案

我不得不重新启动 VSO 代理服务,以便报告新功能。

关于TFS 构建代理找不到 npm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34019067/

相关文章:

unit-testing - 使用 Visual Studio Team Services VSTS 在 Visual Studio 测试中包含或排除测试程序集的正确语法是什么

testing - 在 TFS 构建中运行 Protractor 端到端测试

tfs - 如何在TFS中组织工作项的层次结构?

rest - 通过提交 SHA1 获取构建状态

azure-devops - .Net 4.6 升级后 Visual Studio 测试步骤的 CI 构建错误 - 执行程序进程退出;在 net.pipe 上没有监听端点

visual-studio - 发布管理导致构建失败

git - 在 libgit2sharp 中使用 TFS PAT 授权

sql - 服务器迁移后从 TFS 和 SQL 中删除 "dead"用户帐户

visual-studio - 获取要复制到 TFS Build Drop 位置的静态内容

tfs - Team Foundation Server 自动构建标签