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!...
Blog Archive
Categories
4.3
(1)
Addon
(1)
android
(1)
Codeigniter
(1)
delete
(1)
Devot:ee
(1)
Enso
(1)
Expression Engine
(2)
Galaxy Note 2
(1)
gdg cdeo googleio
(1)
gdg sfd
(1)
Github
(1)
jellybean
(1)
Launchers
(1)
Launchy
(1)
npm
(1)
Parse Order
(1)
Release
(1)
Samsung
(1)
Smartphones
(1)
svg
(1)
SVN
(1)
Sync
(1)
Tech
(1)
TIL tips matplotlib python org-mode spacemacs
(1)
update
(1)
Popular Posts
- CI Multilanguage Module v0.2 released
- TIL Software Series
- Local Devfest, Software Freedom Day and Frameworks
- Expression Engine Parse Order
- How to run another instance of Skype in Mac OSX
- SVG Sequential Transforms Priority
- Goodbye Enso, Hello Launchy
- 3 simple things you must absolutely do when starting an i18n PHP-MySQL Application
- Android 4.3 Features
- How to Enable Sync in Samsung Galaxy Note 2