title: Lots of "npm ERR!"s when running `yo angular`
body: <p>I'm trying to get Yeoman to work but it's been one wall after another. Thank God for stackoverflow and all you nice people helping out.  Anyways ...</p>
  
  <p>I've been trying to run <code>yo angular</code>. But I'm getting a bunch of <code>npm ERR!</code> including:</p>
  
  <pre><code>npm ERR! Please try running this command again as root/Administrator.
  </code></pre>
  
  <p>Since I can't use sudo on yo, I followed the mostly accepted advice and changed some configuration hoping to fix this problem. <a href="https://gist.github.com/randwa1k/9061221" rel="nofollow noreferrer">Here are the commands I ran</a>, which were based on <a href="https://gist.github.com/isaacs/579814" rel="nofollow noreferrer">the recommendation</a>.</p>
  
  <p>But I'm still getting the same error!</p>
  
  <p>Here is my <code>yo angular</code>'s <a href="https://gist.github.com/randwa1k/9061434" rel="nofollow noreferrer">npm-debug.log</a></p>
  
  <p>Here is my <code>yo angular</code>'s <a href="https://gist.github.com/randwa1k/9061458" rel="nofollow noreferrer">stderr.log</a></p>
  
  <p>Here is my <code>yo angular</code>'s <a href="https://gist.github.com/randwa1k/9061478" rel="nofollow noreferrer">stdout.log</a></p>
  
  <p>How should I fix these errors?</p>
  
  <p>Thank you so much in advance.</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>After alex's suggestion of doing <code>sudo chown ubuntu /home/ubuntu/tmp -Rv</code>, the run as root error did go away, however I still have these errors after running <code>yo angular</code> in a new directory. I'm displaying the errors with <code>cat -n stderr.log | grep -ir err</code> (it's strange that <code>npm-debug.log</code> wasn't generated this time):</p>
  
  <pre><code>   218  npm ERR! Error: ENOENT, lstat '/home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js'
     219  npm ERR! If you need help, you may report this *entire* log,
     220  npm ERR! including the npm and node versions, at:
     221  npm ERR!     &lt;http://github.com/npm/npm/issues&gt;
     223  npm ERR! System Linux 3.2.0-54-virtual
     224  npm ERR! command "node" "/usr/local/bin/npm" "install" "grunt-karma" "karma-ng-html2js-preprocessor" "karma-ng-scenario" "--save-dev"
     225  npm ERR! cwd /home/ubuntu/youtube_5
     226  npm ERR! node -v v0.10.25
     227  npm ERR! npm -v 1.4.2
     228  npm ERR! path /home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js
     229  npm ERR! fstream_path /home/ubuntu/youtube_5/node_modules/grunt/lib/grunt/task.js
     230  npm ERR! fstream_type File
     231  npm ERR! fstream_class FileWriter
     232  npm ERR! code ENOENT
     233  npm ERR! errno 34
     234  npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
     235  npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
    1102  npm ERR! 
    1103  npm ERR! Additional logging details can be found in:
    1104  npm ERR!     /home/ubuntu/youtube_5/npm-debug.log
    1105  npm ERR! not ok code 0
  </code></pre>
  
  <p>Update2: After some <a href="https://stackoverflow.com/q/17990647/3290121">research</a>, I solved this new ENOENT problem with <code>sudo npm cache clear</code>. </p>
  
  <p>Thanks StackOverflow.</p>