nvm is not compatible with the npm config "prefix" option:
<p>I am trying to run another NodeJS version with <code>nvm</code> but getting this error:</p>

<pre><code>$ nvm use v4.2.4

nvm is not compatible with the npm config "prefix" option: 
   currently set to "/Users/z/.npm-global"
Run `npm config delete prefix` or `nvm use --delete-prefix v4.2.4` to unset it.
</code></pre>

<p>I have my prefix set on purpose to avoid <code>sudo npm</code> (see <a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions">https://docs.npmjs.com/getting-started/fixing-npm-permissions</a>).</p>

<p>Is there any way I can use <code>nvm</code> without losing my prefix for globally installed packages?</p>