title: Eclipse - ant task fails to run npm with "Cannot run program "npm": error=2, No such file or directory"
body: <p>I'm trying to run <code>npm</code> in an ant task that I run from within Eclipse, but it fails.</p>
  
  <blockquote>
    <p>Cannot run program "npm": error=2, No such file or directory</p>
  </blockquote>
  
  <p>My terminal and system path can run <code>npm,</code> fine, and I've tried various solutions suggesting how to ensure an app started with Finder can use the system path, but none of them helped.</p>
  
  <p>What's the way to solve this problem? I'm using Mac OSX El Capitan, and using zsh. In the past, I had symlinked npm to <code>/usr/bin</code>, but that's not allowed on El Capitan.</p>