11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macOSにcomposerをインストールする

Last updated at Posted at 2018-11-14

ダウンロードします。

$ curl -sS https://getcomposer.org/installer | php

実行したディレクトリ直下にcomposer.pharという実行ファイルが生成されます。
もちろんこの状態で実行もできます。

$ php composer.phar --version

Composer version 1.7.3 2018-11-01 10:05:06

composerで実行できるようにする為に、実行ファイルを/usr/local/bin直下に移動します。

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

挙動を確認します。

$ which composer

/usr/local/bin/composer
$ composer --version

Composer version 1.7.3 2018-11-01 10:05:06

終わり。

環境:
macOS High Sierra
Version 10.13.6

参考:
https://getcomposer.org/doc/00-intro.md

11
8
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
11
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?