Monday, July 25, 2016

Change global npm install modules destination

There are many ways to change the installation destination of your global npm modules. IMO, using a user config file is the cleanest way to do this. If you want to do it this way, just follow this 2 steps. Create ~/.npmrc file if you don't have one.  Add this line to your npmrc fileprefix={Folder Name}For example, if you want to do global npm installs in ~/.npm-global, then add this lineprefix=~/.npm-global Viola!...

Programming and Computer Science

Powered by Blogger.