laravel new アプリ名
とすると、
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Abort trap: 6
とエラーが表示されました。
homebrewのバージョンが原因のようです。
brew update && brew upgrade
するとエラーになりました。権限なないことが原因のようです。
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
下記のコマンドで権限を付与します。
sudo chown -R /usr/local
usage: chown [-fhnv] [-R [-H | -L | -P]] owner[:group] file ...
chown [-fhnv] [-R [-H | -L | -P]] :group file ...
再度homebrewのバージョンアップします。
brew update && brew upgrade
今度は成功しました。
そして、
homebrewをバージョンアップしたので、Laravelアプリを作成します。
laravel new アプリ名
Package manifest generated successfully.
Application ready! Build something amazing.
今度は成功しました😊