I am trying to create new Laravel application.
I have installed XAMPP and Composer.
With Composer ( composer global require laravel/installer
) I have installed Laravel.
But when I try to use laravel new firstProject
command to create new command the instalation throws two errors.
I am using Windows 10 if that helps.
JavaScript
x
[RuntimeException]
The archive may contain identical file names with different capitalization (which fails on case insensitive filesys
tems): ZipArchive::extractTo(C:UsersUser1DesktopPHP/vendor/composer/374ddf59/laravel-laravel-8e55104public/rob
ots.txt): Failed to open stream: Permission denied
[ErrorException]
ZipArchive::extractTo(C:UsersUser1DesktopPHP/vendor/composer/374ddf59/laravel-laravel-8e55104public/robots.txt
): Failed to open stream: Permission denied
I have tried:
- Reinstalling and updating composer
- Reinstalling and updating Laravel
- Changing folder where I want to create my project
- Using the composer create-project laravel/laravel blog command to create new project through composer still the same errors as above
Advertisement
Answer
Read with understanding:
Failed to open stream: Permission denied
.
This means that your command line have no access to read or write in current directory. You have to change directory permissions and it should work.