title: node.js with underscore on linux Error: Cannot find module 'underscore'
body: <p>I am using amazon linux on ec2. Used nvm to install node v4.4.5 and run my script and i have this error: </p>
  
  <blockquote>
  <pre><code>Error: Cannot find module 'underscore'
  </code></pre>
  </blockquote>
  
  <p>I tried to <code>npm install underscore --save</code> and <code>npm install underscore -g</code>. it just doesnt work. </p>
  
  <p>i dont know why is wrong. can someone help?</p>
  
  <blockquote>
    <p>server-0 (err):     at Function.Module._load (module.js:276:25)
    server-0 (err):     at Function._load
    (/home/ec2-user/.nvm/versions/node/v4.4.5/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    server-0 (err):     at Module.require (module.js:353:17) server-0
    (err):     at require (internal/module.js:12:17) server-0 (err):<br>
    at Object. (/var/server/routes/v1/auth.js:6:11) server-0
    (err):     at Module._compile (module.js:409:26) server-0 (err):<br>
    at Object.Module._extensions..js (module.js:416:10) server-0 (err):<br>
    at Module.load (module.js:343:32) server-0 (err):     at
    Function.Module._load (module.js:300:12) server-0 (err): Error: Cannot
    find module 'underscore' server-0 (err):     at
    Function.Module._resolveFilename (module.js:325:15) server-0 (err):<br>
    at Function.Module._load (module.js:276:25) server-0 (err):     at
    Function._load
    (/home/ec2-user/.nvm/versions/node/v4.4.5/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)
    server-0 (err):     at Module.require (module.js:353:17) server-0
    (err):     at require (internal/module.js:12:17) server-0 (err):<br>
    at Object. (/var/server/routes/v1/auth.js:6:11) server-0
    (err):     at Module._compile (module.js:409:26) server-0 (err):<br>
    at Object.Module._extensions..js (module.js:416:10) server-0 (err):<br>
    at Module.load (module.js:343:32) server-0 (err):     at
    Function.Module._load (module.js:300:12)</p>
  </blockquote>