composer常用命令
程序员文章站
2022-05-31 09:11:20
...
列出当前全局配置
composer config -l -g
安装某个项目时,不安装dev扩展
composer install --no-dev
composer如何安装到系统(2020 11 05 目前composer最新版本 2.0.4 )
cd
wget -O composer-setup.php https://getcomposer.org/installer
chmod +x composer-setup.php
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
提示composer安装成功
composer config -g repositories.packagist.org
上面这个命令是查看的。
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
上面设置阿里的镜像。
=================
设置允许使用超级用户来使用composer,避免root提示
echo "export COMPOSER_ALLOW_SUPERUSER=1" >> /etc/profile
source /etc/profile
=======================
composer自身更新
composer self-update
记住更新后需要再次设置composer的镜像源
========================
composer config -l -g
安装某个项目时,不安装dev扩展
composer install --no-dev
composer如何安装到系统(2020 11 05 目前composer最新版本 2.0.4 )
cd
wget -O composer-setup.php https://getcomposer.org/installer
chmod +x composer-setup.php
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
提示composer安装成功
composer config -g repositories.packagist.org
上面这个命令是查看的。
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
上面设置阿里的镜像。
=================
设置允许使用超级用户来使用composer,避免root提示
echo "export COMPOSER_ALLOW_SUPERUSER=1" >> /etc/profile
source /etc/profile
=======================
composer自身更新
composer self-update
记住更新后需要再次设置composer的镜像源
========================
上一篇: 蜂蜜的作用和食用方法,各位看官请收好
下一篇: 伊苏树海世界地图