title: npm command - sudo or not?
body: <p>Currently I always run <code>sudo npm install &lt;package-name&gt;</code> but as I understand it's not correct.</p>
  
  <p>I want to have opportunity not to use it as root/Administrator.
  I followed some advice and used this command <code>sudo chown -R &lt;username&gt; ~/.npm</code> but it won't work...</p>
  
  <p>for example, it's an output of my <code>npm install jade</code></p>
  
  <pre><code>...
  npm http 200 https://registry.npmjs.org/amdefine
  npm http GET https://registry.npmjs.org/amdefine/-/amdefine-0.0.5.tgz
  npm http 200 https://registry.npmjs.org/amdefine/-/amdefine-0.0.5.tgz
  npm ERR! Error: EACCES, symlink '../jade/bin/jade'
  npm ERR!  { [Error: EACCES, symlink '../jade/bin/jade'] errno: 3, code: 'EACCES', path: '../jade/bin/jade' }
  npm ERR! 
  npm ERR! Please try running this command again as root/Administrator.
  </code></pre>
  
  <p>as you see download started successfully but then failed..</p>
  
  <p>I'm wondering what is the best way to disallow sudo on npm?</p>