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?

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *