在Composer中安装Monolog异常

时间:2019-05-02 09:16:11

标签: php composer-php monolog

我尝试在作曲家monolog/monolog上在Ubuntu上安装composer require monolog/monolog,但出现此错误:

Installation failed, reverting ./composer.json to its original content.


  [RuntimeException]
  pathToMyProject/vendor/psr/log does not exist and could not be created.

有人知道问题出在哪里吗?

1 个答案:

答案 0 :(得分:0)

好吧,我不好,您只需要运行sudo:p