[EC2 Laravel8] Composer 설치

2023. 7. 20. 18:26AWS

728x90

출처: <https://dev.to/alexandrefreire/install-composer-on-amazon-ami-running-on-ec2-10a6


sudo curl -sS https://getcomposer.org/installer | sudo php
# curl -sS 옵션 = curl --silent --show-error
# Run curl in silent mode, and show no output unless there is an error.

All settings correct for using Composer
Downloading...

Composer (version 2.5.4) successfully installed to: /home/ec2-user/composer.phar
Use it: php composer.phar

sudo mv composer.phar /usr/local/bin/composer

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

sudo composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Composer could not find a composer.json file in /home/ec2-user
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage

728x90
반응형