composer global require

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:56 판 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

composer global require
  • 새로운 패키지를 글로벌로 설치하는 composer 명령어
  • 요청한 패키지 정보를 /home/사용자명/.composer 폴더의 composer.json 파일에 기록하고, 해당 패키지를 설치한후 composer.lock 파일에 기록함
testuser@ubuntu:~$ composer global show
Changed current directory to /home/testuser/.composer
Composer could not find a composer.json file in /home/testuser/.composer
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
testuser@ubuntu:~$ composer global require hirak/prestissimo
Changed current directory to /home/testuser/.composer
Using version ^0.3.8 for hirak/prestissimo
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing hirak/prestissimo (0.3.8): Downloading (100%)         
Writing lock file
Generating autoload files
testuser@ubuntu:~$ composer global show
Changed current directory to /home/testuser/.composer
hirak/prestissimo 0.3.8 composer parallel install plugin

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}