安装composer

  • 下载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
喜欢就支持一下吧
分享