Search code examples
phpcomposer-phpmonolog

Exception installing monolog in composer


I tried to install monolog/monolog with composer composer require monolog/monolog on my Ubuntu but I got this error :

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


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

Has someone an idea of what the problem is ?


Solution

  • Ok my bad you just have to run has sudo :p