How to change npm globally installation path
<p>Is it possible to change where you install your dependencies when doing <code>npm install -g module</code>? I know it installed in your <code>C:/../{name}/Appdata..etc</code> but I want to change the path on mine due to limited disk space.</p>

<p>I've installed node.js on an external disk which is fine and can do npm commands, but now I want the global dependencies to be installed on this disk as well.</p>

<p>Is there a way to do it?</p>