title: How to execute "sudo nvm"?
body: <p>On my Mac, I want to migrate some packages that require su rights to another node version. </p>
  
  <p>I used homebrew to install nvm and now I need to execute sudo nvm or <code>--reinstall-packages</code> will fail.</p>
  
  <pre><code>me@MacBook:~$ sudo nvm
  sudo: nvm: command not found
  me@MacBook:~$ sudo node -v
  v5.4.1
  me@MacBook:~$ sudo npm -v
  3.3.12
  me@MacBook:~$ nvm ls
  -&gt;       v5.4.1
           v9.6.1
           system
  default -&gt; 5.4.1 (-&gt; v5.4.1)
  node -&gt; stable (-&gt; v9.6.1) (default)
  stable -&gt; 9.6 (-&gt; v9.6.1) (default)
  iojs -&gt; N/A (default)
  lts/* -&gt; lts/carbon (-&gt; N/A)
  lts/argon -&gt; v4.8.7 (-&gt; N/A)
  lts/boron -&gt; v6.13.0 (-&gt; N/A)
  lts/carbon -&gt; v8.9.4 (-&gt; N/A)
  </code></pre>
  
  <p>I think the command cannot be found, because sudo is looking in different paths. I've found nvm.sh in <code>/usr/local/opt/nvm</code>, however:</p>
  
  <pre><code>sudo /usr/local/opt/nvm/nvm.sh ls
  </code></pre>
  
  <p>returns nothing.</p>
  
  <p>Even</p>
  
  <pre><code>/usr/local/opt/nvm/nvm.sh ls
  </code></pre>
  
  <p>returns nothing, so I suspect this is the wrong shell script.</p>
  
  <p>How can I call nvm with sudo, explicitly?</p>