1
我目前正在嘗試安裝作曲家以安裝laravel。安裝作曲家的問題
繼其website instructions,我輸入以下代碼到我的終端:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
但沒有成功,我得到以下錯誤:
Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1
Warning: copy(): Failed to enable crypto in Command line code on line 1
Warning: copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
這給了我,我做的概念沒有權限執行此操作,這是原因,爲什麼會發生?
無論何時需要在Mac上安裝某些東西,請考慮使用** [Homebrew](https://brew.sh/)**。使用'brew search *** *** *** ***'來查看它是否可用。這個軟件包管理器給了我最可靠,最可靠的結果。很高興你找到了解決方法。 – YvesLeBorg