title: npm: not found when setting up Jenkins Server?
body: <p>This is my first time setting up a jenkins server.  The build is using Amazon's EC2 and Ubuntu 14.04. </p>
  
  <p>I've installed <a href="http://nodejs.org/" rel="nofollow noreferrer">node</a> and <a href="https://www.npmjs.com/" rel="nofollow noreferrer">npm</a> via <a href="https://github.com/creationix/nvm" rel="nofollow noreferrer">nvm</a>.  </p>
  
  <pre><code>node -v
  &gt;v0.11.14
  
  npm -v
  &gt;2.0.0
  </code></pre>
  
  <p>The repo pulls down just fine into my <code>/var/lib/jenkins/workspace/morningharwood</code> folder.</p>
  
  <p><strong>Problem: When I add my script it breaks</strong></p>
  
  <p>Here's my build script which errors out?  <em>I have no idea what i'm doing.  I copied this from a tutorial.</em></p>
  
  <p><img src="https://i.stack.imgur.com/o6Pdf.png" alt="enter image description here"></p>
  
  <p><strong>QUESTION:</strong>  How do I properly write my script to <code>npm install</code>, <code>bower install</code> and lastly, <code>grunt test</code></p>