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