LoginSignup
19
11

More than 3 years have passed since last update.

Macにcomposerをインストール

Last updated at Posted at 2017-04-24

ダウンロード

公式サイトの Download をクリックして、そのままターミナルに貼り付け。

Composer successfully installed... が出ていたらOK。

パスを通す

フォルダの中から composer が叩けるようにする。

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

上記がだめなら sudo を付けたり。

mv: rename composer.phar to /usr/local/bin/composer: No such file or directory

ディレクトリがないとのことなので以下のコマンドでディレクトリを作成してからパスを通しましょう。

$sudo mkdir /usr/local/bin

[参考]
https://blog.fire-sign.info/686/

インストールできているか確認する

$composer -V

または

composer --version
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/

が出ればOK。

19
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
11