반응형

m1 mac composer 설치

옵션1: curl 설치

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

옵션2: php 설치

php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/

symbolic link 설정

sudo ln -s /usr/local/bin/composer.phar /usr/local/bin/composer

 

 

Composer 버전 업그레이드 또는 다운 그레이드 / Version Upgrade or Downgrade

Assuming a regular composer installation, to rollback to version 1 of composer, you simply execute:

composer self-update --1

When you want to go back to version 2 (which you should, after updating or removing the incompatible plugins):

composer self-update --2

The above will take you to the latest on any of the two major versions.

You can also "update" to a specific version just by passing the version number to self-update:

composer self-update 1.10.12
composer self-update 2.0.7

After performing any self-update, you can specify --rollback to go back to the previously installed version.

composer self-update
composer self-update --rollback

Finally, if you are feeling adventurous, you can update to a pre-release version by executing:

composer self-update --preview
 
반응형

+ Recent posts