前提・実現したいこと
Laravelで新規プロジェクトを作成したいのですが、エラーが出てしまっています。
発生している問題・エラーメッセージ
composerがあるディレクトリ内で
$ laravel new blog
と入力した結果、
-bash: laravel: command not foundと出てしまっています。
試したこと
-bash: laravel: command not found でlaravelコマンドにパスを通すため
export PATH="~/.composer/vendor/bin:$PATH" を実行し、
再度 $ laravel new blog と入力した結果、
In NewCommand.php line 44:
The Zip PHP extension is not installed. Please install it and try again.
new [--dev] [--force] [--] [<name>]
というエラーが出てしまったため、PHP extensionをインストールするため、
sudo apt-get install php7.4.1-zip
yum install --enablerepo=remi-php74 php-zip
sudo yum install php-pear --disablerepo=* --enablerepo=remi,remi-php74
と入力したのですが、いづれもcommand not foundと出てしまいました。
解決方法がわからないのでどなたかご教授頂けたら嬉しいです。
追記:Mac OSを使用しています。