- 下载composer.phar
curl -sS https://getcomposer.org/installer | php
- 终端执行
mv composer.phar /usr/local/bin/composer
- 若出现以下错误:
mv: rename composer.phar to /usr/local/bin/composer: No such file or directory
- 执行 sudo mv composer.phar /usr/local/bin/composer 可以解决
-
修改 composer 的全局配置文件
composer config -g repo.packagist composer https://packagist.phpcomposer.com
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END