简体   繁体   中英

Install Composer for windows on D drive

So I have been using laravel on my testing laptop which happens to Linux. So installing composer was quite easy. I wanted to installed laravel on my desktop but when I went to install composer it auto sets its install path to C:\\ProgramData\\ComposerSetup\\bin .

This is a very small solid state drive. I do not install anything onto this drive. Is there a way to change where composer is trying to install on a windows machine?

You can set the --install-dir flag via the CLI to point to where you want it installed.

From the docs:

curl -sS https://getcomposer.org/installer | php -- --install-dir=bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM