title: Managing file permissions with npm OSX
body: <p>I am trying to install <a href="https://github.com/datatypevoid/vulgar" rel="nofollow">this</a> MEAN application generator on my mac - OSX El Capitan v10.11.4. However, I get the following output:</p>
  
  <blockquote>
    <p>Checking permissions...</p>
    
    <p>Cloning branch master into destination folder:  eval</p>
    
    <p>git clone  --depth 1  -b master <a href="https://github.com/datatypevoid/vulgar.git" rel="nofollow">https://github.com/datatypevoid/vulgar.git</a> "eval"</p>
    
    <p>/usr/local/bin/npm
    There are 2 files in your ~/.npm owned by root
    Please change the permissions by running - chown -R <code>whoami</code> ~/.npm </p>
    
    <p>/usr/local/lib/node_modules/vulgar-cli/lib/install.js:84
          throw err;</p>
  </blockquote>
  
  <p>The command won't run if I use <code>sudo</code>. I get an error saying the command can't be run as the root user.</p>
  
  <p>I have run <code>chown -R georgeedwards ~/.npm</code>, which ran without any error, but I still get the same result. </p>
  
  <p>What should I do to avoid this issue?</p>