title: Unable to fetch platform android: Error: EACCES
body: <p>First, I installed PhoneGap:</p>
  
  <pre><code>$ sudo npm install -g phonegap
  </code></pre>
  
  <p>Then I created a new project:</p>
  
  <pre><code>$ phonegap create hellophonegap
  </code></pre>
  
  <p>But when I ran the project:</p>
  
  <pre><code>$ phonegap run android
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>[~/hellophonegap]$ phonegap run android  
  [phonegap] executing 'cordova platform add android'...  
  Unable to fetch platform android: Error: EACCES, mkdir '/home/crane/tmp/npm-28555-XalHvwaa'
  [phonegap] executing 'cordova run android'...
  No platforms added to this project. Please use 'cordova platform add platform'.
  </code></pre>
  
  <p>I have configured the Android SDK environment variables properly. This was added to my <code>.bashrc</code>:  </p>
  
  <pre><code>export ANDROID_SDK=/home/crane/androidsdk
  export PATH=$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$PATH`
  </code></pre>
  
  <p>I'm using Ubuntu 14.04, and running PhoneGap v4.1.2-0.22.9</p>