我试图在我的macOS版本上安装Composer:high sierra – > 10.13.4
但使用命令后:
<code>sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
</code>
它创建了一些文件和目录,但它没有下载作曲家.
我的终端显示以下错误:
No log handling enabled – using stderr logging
Created directory: /var/db/net-snmp
Created directory: /var/db/net-snmp/mib_indexes`
我该如何解决这个问题?
解决方法:
首先在你的MAC上安装Brew:
<code>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" </code>
然后安装PHP:
<code>brew update brew tap homebrew/dupes brew tap homebrew/php brew install php brew install composer </code>
要测试安装,请运行:
<code> $composer -V </code>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!