1
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.

ローカルのphpバージョンを設定

Posted at

Homebrewを使ってlocalのphpバージョンを設定する場合

1. Homebrewに下記をインストール

brew install php # 入れておかないと怒られるので追加しておく
brew install php@7.4

2. Homebrewにlocalのphpをphp@7.4へ切り替える

brew unlink php && brew link --overwrite --force php@7.4

3. 上記のcommandで出てきた案内通りに~/.zshrcへechoで指定のパスを追加

4.下記コマンドで、~/.zshrcの内容を反映

source ~/.zshrc
1
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
1
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?