title: sudo npm install command not found
body: <p>I have installed <code>nodejs</code> and <code>npm</code> in my server (os:amazon ami) using node version manager
  current node version is <code>7.10.0</code>
  npm version  is <code>4.2.0</code></p>
  
  <p>nodejs project is located in <code>var/www/testing</code> folder when i am trying to install the depeondeies present in package.json using <code>sudo npm install</code> i got command not found error</p>
  
  <p>Path of <code>node</code> and <code>npm</code> is respectively</p>
  
  <pre><code>~/.nvm/versions/node/v7.10.0/bin/node
  
  ~/.nvm/versions/node/v7.10.0/bin/npm
  </code></pre>
  
  <p>npm and node are in same folder but when I try this command:</p>
  
  <p><code>sudo npm install</code> I got <code>sudo: npm: command not found</code></p>
  
  <p><code>npm install</code> command throws no errors but <code>node_modules</code> folder is empty.</p>