TFS 构建代理找不到 npm [英] TFS build agent cannot locate npm

查看:32
本文介绍了TFS 构建代理找不到 npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

On a locally hosted TFS I'm using the "npm install" build step in my build definition.

在代理机器上,我已经安装了 nodejs 并且可以从命令行.

On the agent machine I have installed nodejs and can run npm from the command line.

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

When I attempt to queue the build I get a pop up with the message:

找不到具有以下功能的代理:npm、DotNetFramework

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

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

So I attempted to add the capability, first by refreshing the agent capabilities and when that had no effect I added a capability:

npm C:\Program Files\nodejs

npm C:\Program Files\nodejs

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

Then the build starts but the npm step throws the error:

无法定位 npm

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

I suspect I have missed something on my agent set up because the agent is not reporting its npm capability?

推荐答案

我不得不重新启动 VSO 代理服务,以允许报告新功能.

I had to restart the VSO agent service, allowing the new capability to be reported.

这篇关于TFS 构建代理找不到 npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆