title: TFS build agent cannot locate npm
body: <p>On a locally hosted TFS I'm using the "npm install" build step in my build definition.</p>
  
  <p>On the agent machine I have installed <a href="https://nodejs.org/en/" rel="noreferrer">nodejs</a> and can run <code>npm</code> from the command line.</p>
  
  <p>When I attempt to queue the build I get a pop up with the message:</p>
  
  <blockquote>
    <p>No agent could be found with the following capabilities: npm, DotNetFramework</p>
  </blockquote>
  
  <p>So I attempted to add the capability, first by refreshing the agent capabilities and when that had no effect I added a capability:</p>
  
  <blockquote>
    <p>npm C:\Program Files\nodejs</p>
  </blockquote>
  
  <p>Then the build starts but the npm step throws the error:</p>
  
  <blockquote>
    <p>Unable to locate npm</p>
  </blockquote>
  
  <p>I suspect I have missed something on my agent set up because the agent is not reporting its npm capability?</p>