title: How to set custom location for local installation of npm package?
body: <p>Is it possible to specify a custom package destination for <code>npm install</code>, either through a command flag or environment variable?</p>
  
  <p>By default, npm local installs end up in <code>node_modules</code> within the current directory, but I want it to install into <code>node_modules</code> within a different directory, for example <code>vendor/node_modules</code>. How can I make that happen?</p>