我正在尝试将Prestissimo安装到Ubuntu 16.04服务器,但这会导致错误:
$ composer global require "hirak/prestissimo:^0.3"
Changed current directory to /home/kramer65/.composer
[ErrorException]
file_put_contents(./composer.json): failed to open stream: Permission denied
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...
我以用户身份登录kramer65
,所以我不知道为什么它无法写入我的主文件夹。我对a的正常反应permission denied
是使用sudo
,但是作曲家然后总是说:
不要以root /超级用户身份运行Composer!有关详细信息,请参见https://getcomposer.org/root
知道我该如何解决吗?
composer.json
什么?