title: NPM permission error while installing
body: <p>i am trying to install yeoman on my server but for some reason do i keep getting a permission denied error.</p>
  
  <pre><code>$npm install -g yo
  /root/.node/bin/yo -&gt; /root/.node/lib/node_modules/yo/cli.js
  
  &gt; yo@1.3.3 postinstall /root/.node/lib/node_modules/yo
  &gt; yodoctor
  
  sh: 1: yodoctor: Permission denied
  
  npm ERR! yo@1.3.3 postinstall: `yodoctor`
  npm ERR! Exit status 127
  npm ERR! 
  npm ERR! Failed at the yo@1.3.3 postinstall script.
  npm ERR! This is most likely a problem with the yo package,
  npm ERR! not with npm itself.
  npm ERR! Tell the author that this fails on your system:
  npm ERR!     yodoctor
  npm ERR! You can get their info via:
  npm ERR!     npm owner ls yo
  npm ERR! There is likely additional logging output above.
  npm ERR! System Linux 3.13.0-37-generic
  npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "yo"
  npm ERR! cwd /root
  npm ERR! node -v v0.10.33
  npm ERR! npm -v 1.4.28
  npm ERR! code ELIFECYCLE
  npm ERR! not ok code 0
  </code></pre>
  
  <p>i have tried to reinstall ubuntu (14.04) but nothing works.</p>