Reputation: 17734
When I install modules with NPM on Windows, it installs them to:
~/node_modules
I'd like to set change this to an arbitrary path such as:
c:\dev\repo\node_modules
I've tried
npm config set prefix <path>
With various values but none of them seem to work.
Upvotes: 9
Views: 4660