PHP Composer – 无法在macOS Sierra上安装composer
发布时间:2020-12-13 18:24:04 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试安装运行getcomposer.org/download文档站点上提供的命令的composer: php -r "copy('https://getcomposer.org/installer','composer-setup.php');"php -r "if (hash_file('SHA384','composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d
我正在尝试安装运行getcomposer.org/download文档站点上提供的命令的composer:
php -r "copy('https://getcomposer.org/installer','composer-setup.php');" php -r "if (hash_file('SHA384','composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { 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 Yoshihiros-MacBook-Pro:~ yoshihiro$php -r "if (hash_file('SHA384','composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" Warning: hash_file(composer-setup.php): failed to open stream: No such file or directory in Command line code on line 1 Installer corrupt Warning: unlink(composer-setup.php): No such file or directory in Command line code on line 1 Yoshihiros-MacBook-Pro:~ yoshihiro$php composer-setup.php Could not open input file: composer-setup.php 我也试图在全球范围内安装它,但我无法摆脱这个消息.请帮忙D:
我有同样的问题,但这就是我所做的:
>我将其复制粘贴到终端php -r“copy(‘http://getcomposer.org/installer’,’composer-setup.php’);”在将作曲家下载到您当前所在目录的终端上.
>然后 祝好运 ! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |