在Ubuntu上安装Composer

前端之家收集整理的这篇文章主要介绍了在Ubuntu上安装Composer前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用以下命令安装composer:
sudo curl -s https://getcomposer.org/installer | PHP

而我收到此错误

All settings correct for using Composer
Downloading...
Download Failed: Failed to open stream: Permission denied
Downloading...
Download Failed: Failed to open stream: Permission denied
Downloading...
Download Failed: Failed to open stream: Permission denied
The download Failed repeatedly,aborting.

我不知道为什么?你有好主意吗?我试着谷歌但没什么.

你的curl命令以root身份运行(通过sudo),但你的PHP命令不是.尝试在管道(“|”)和“PHP”之间移动sudo(假设您希望安装程序首先以root身份运行…).
原文链接:https://www.f2er.com/ubuntu/348408.html

猜你在找的Ubuntu相关文章