Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS build agent cannot locate npm

Tags:

tfs

tfsbuild

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

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:

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

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

Unable to locate npm

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

like image 750
weston Avatar asked Dec 01 '15 11:12

weston


1 Answers

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

like image 186
weston Avatar answered Oct 18 '22 23:10

weston