title: How to resolve 'cannot find module 'serialport' using Node.js and Johnny-Five?
body: <p><strong>Main goal: using Johnny-five and node.js to run a script for my Arduino, using LeapMotion Controls</strong></p>
  
  <p>I have a folder with my </p>
  
  <p>1: 'robotarm.js' script</p>
  
  <p>2.the Leapjs 'lib' folder</p>
  
  <ol start="3">
  <li>the 'node_modules' folder in leapjs which has underscore, glmatrix and ws.</li>
  </ol>
  
  <p>I am have uploaded the Standard Firmata on the Arduino Board and I am trying to run my Script to start the program. However when I go to terminal, get inside my proj folder and type node robotarm.js, this is what happens:      </p>
  
  <pre><code> Kriss-MacBook-Pro:armproj Kris$ node robotarm.js
  
   module.js:340
  throw err;
        ^
  Error: Cannot find module 'serialport'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Board.Serial.detect (/Users/Kris/node_modules/johnny-five/lib/board.js:69:7)
  at new Board (/Users/Kris/node_modules/johnny-five/lib/board.js:299:23)
  at Object.&lt;anonymous&gt; (/Users/Kris/Desktop/armproj/robotarm.js:90:9)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  </code></pre>