title: Stop EACCES errors with npm/node on Ubuntu?
body: <h3>Setup the system environment</h3>
  
  <pre><code>$ lsb_release -a 2&gt; /dev/null | grep Desc
  Description:    Ubuntu 14.04.1 LTS
  
  $ sudo apt-get install build-essential
  $ sudo add-apt-repository ppa:chris-lea/node.js &amp;&amp; sudo apt-get update
  $ sudo apt-get install nodejs &amp;&amp; sudo npm update -g npm
  $ sudo npm install -g yo generator-angular &amp;&amp; cd /tmp &amp;&amp; mkdir b &amp;&amp; cd $_
  </code></pre>
  
  <h3>Generate (yeoman)</h3>
  
  <pre><code>/tmp/b $ yo angular
  [?] Would you like to use Sass (with Compass)? No
  [?] Would you like to include Bootstrap? No
  [?] Which modules would you like to include? 
   ⬢ angular-animate.js
   ⬢ angular-cookies.js
   ⬡ angular-resource.js
   ⬡ angular-route.js
   ⬢ angular-sanitize.js
   ⬢ angular-touch.js
  </code></pre>
  
  <h3>Errors</h3>
  
  <p><a href="https://gist.github.com/anonymous/aa5b26d14f029423dd3a" rel="nofollow">npm-debug.log</a></p>
  
  <hr>
  
  <p>Is there some trick—short of <code>chown</code>ing <code>/usr/lib/node_modules</code>—that will stop these errors from occuring?</p>