title: Unable to run npm on sudo
body: <p>I am using Node Version Manager.</p>
  
  <p>When I do npm install it runs, however when I do <strong>sudo</strong> npm install it says </p>
  
  <pre><code>sudo: unable to execute /usr/local/bin/npm: No such file or directory
  </code></pre>
  
  <p>However there is a script present at this path.</p>
  
  <p>When I am not root user and I do</p>
  
  <pre><code>nvm use 0.10.32
  
  localusername@Systemname:~$ which node
  /home/localusername/.nvm/v0.10.32/bin/node
  
  localusername@Systemname:~$ which npm
  /home/localusername/.nvm/v0.10.32/bin/npm
  </code></pre>
  
  <p>How can I use this npm printed here on doing sudo npm install.</p>