在优胜美地上安装作曲家时出错



运行curl -sS https://getcomposer.org/installer | php会给我以下错误:

#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
Downloading...
Could not create file /private/etc/apache2/users/composer.phar: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
Download failed: fopen(/private/etc/apache2/users/composer.phar): failed to open stream: Permission denied
fwrite() expects parameter 1 to be resource, boolean given
The download failed repeatedly, aborting.

不确定需要更改哪些权限才能使其正常工作。我是Mac OS的新手。我尝试使用 sudo 运行相同的命令,但无济于事。关于 apache2 目录中需要更改哪些内容才能使其工作的任何想法?

用户文件夹上的简单 chmod 777 解决了这个问题。该死的,我有时觉得自己像个白痴。

相关内容

  • 没有找到相关文章

最新更新