title: PhoneGap - Building phonegap android app gives compile error on Linux
body: <p>I am getting error while building phonegap android app on my linux (ubuntu 12.04) machine.
  I have installed nodejs, set JAVA_HOME, ANT_HOME, ANDROID_HOME vars and $JAVA_HOME/bin, $ANT_HOME/bin, $ANDROID_HOME/tools, $ANDROID_HOME/platform-tools to the path. when I am running command <code>phonegap local build android</code>, I am getting following error:</p>
  
  <pre><code>ME@My-PC:/dos/PhoneGap/HelloWorld$ phonegap local run android 
  [phonegap] compiling Android...
      [error] An error occurred while building the android project. 
  module.js:340
      throw err;
            ^
  Error: Cannot find module 'shelljs'
      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 Object.&lt;anonymous&gt; (/dos/PhoneGap/HelloWorld/platforms/android/cordova/lib/build.js:22:15)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
  </code></pre>
  
  <p>Thanks for Helping</p>