Azure私有构建代理:找不到具有以下功能的代理:npm,azureps(Azure private build agent : No agent could be found with the fo

编程入门 行业动态 更新时间:2024-10-26 06:36:51
Azure私有构建代理:找不到具有以下功能的代理:npm,azureps(Azure private build agent : No agent could be found with the following capabilities: npm, azureps)

我试图使用本地服务器作为构建代理来构建项目。 服务器已经有了

VS 2015, VS 2017 节点6,7,8通过NVM NPM 4,5,6通过NVM

我可以通过npm build或yarn build在本地构建项目。

我已经下载并配置并注册了私有构建代理,我将它放在门户网站的代理池中 - xxx.visualstudio.com/xxx。

但是当我尝试从门户安排构建时,会显示以下消息:

找不到具有以下功能的代理:npm,azureps

我需要修复什么才能在本地运行构建?

I am trying to use a local server as a build agent to build a project. The server already has

VS 2015, VS 2017 Node 6,7,8 via NVM NPM 4,5,6 via NVM

I can build the project locally via npm build or yarn build.

I have downloaded and configured and registered the private build agent already and I have it in the agent pool in the portal - xxx.visualstudio.com/xxx.

But when I try to schedule a build from the portal the following message is displayed :

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

What do I need to fix so the build can run locally?

最满意答案

问题很简单 - 我没有看到Capabilities选项卡的位置。 恕我直言请求和功能不容易被发现。 我看到了它并且我将两个变量设置为true并且它开始工作,即使我不确定true是否是正确的值。

另一个问题是NVM SYMLINK没有按预期工作,并且构建代理根本找不到node.exe。 它根本不在PATH中。 我卸载了nvm并且只使用节点8.1.2和npm 5来运行它。

在此处输入图像描述

The problem was simple - I did not see where the Capabilities tab was. IMHO Requests and Capabilities are not easily discoverable. I saw it and I set the two variables to true and it started to work even though I did not know for sure if true is the right value.

Another problem was that NVM SYMLINK was not working as expected and the build agent could not find node.exe at all. It was not in the PATH at all. I uninstalled nvm and used only node 8.1.2 with npm 5 in order to make it run.

enter image description here

UPDATE As of today you can add a 'node tool installer' task to your definition - this is the better solution that is available today as D.J. points out in the comment section.

更多推荐

本文发布于:2023-08-07 13:39:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464713.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   功能   npm   Azure   azureps

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!