title: Maven failed to execute goal - cannot run program npm
body: <p>I am on a Windows 7 computer and I've been given code that I have to run "mvn install" on to build the app. When I do this, I get the following error:</p>
  
  <blockquote>
    <p>Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (npm-install) on project [project]: Command execution failed.: Cannot run program "npm" (in directory "C:\Users\path\to\a\folder"): CreateProcess error=2, The system cannot find the file specified</p>
  </blockquote>
  
  <p>The app itself is split into several parts, one of which is an angular app that npm is being used for.</p>
  
  <p>I've tried installing nodejs (which I'm not very familiar with) and included it in the PATH, but the same error happened anyway. Shouldn't maven take care of the need for installing it?</p>
  
  <p>Any advice on how to resolve this is appreciated.</p>