0
0

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 3 years have passed since last update.

Composer を 1.x から 2.x へアップデートする方法

Last updated at Posted at 2021-01-28

前書き

Composer のアップデート記事は多々あれど「最低限なにすれば良いの?」という疑問に答えてくれる記事が見当たらなかったので書いた

検証環境

  • Amazon Linux 2
  • PHP
    • 7.2.4

Composer 自身をアップデート

説明不要で、以下実行のこと

$ sudo composer self-update
Updating to version 2.0.9 (stable channel).
   Downloading (100%)         
Use composer self-update --rollback to return to version 1.9.2

念のため、バージョンを確認する

$ composer --version
Composer version 2.0.9 2021-01-27 16:09:27

無事、2.0.9 へ更新されていた

以上

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?