On Windows, when global install of a library / package is done, composer stores the package in a Composer
directory inside windows **application data folders** which by default is
C:Users{user name}AppDataRoaming`.
To change this folder to say C:phpcomposer
, create a COMPOSER_HOME
environmental variable with the value set to C:phpcomposer
.
The steps below explain how environmental variables are added in Windows. * Press Windows Key + Pause Break then click Advanced system Settings
(source: w3guy.com)
Click the Environmental variables
button.
(source: w3guy.com)
Under System variables
, click New...
button and add the environmental variable like so:
(source: w3guy.com)
You might want to restart your PC for this to take effect.
Credit: http://w3guy.com/change-composer-global-package-install-folder-windows/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…