composer laravel installer permission denied on Windows 10

Posted 3 months ago by patrickmaciel

Hi guys how are you? Tody I start work on Windows 10 again (previous was MacOS High Sierra). And when I tried execute the command composer global require laravel/installer I received the following error:

Changed current directory to C:/Users/patri/AppData/Roaming/Composer

  file_put_contents(C:\Users\patri\AppData\Roaming\Composer\vendor): failed to open stream: Permission denied

require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

Please sign in or create an account to participate in this conversation.