0

I am absolutly new in Composer and in Laravel framework.

I am trying to create a new Laravel 5.2 project using Composer to download it performing this statment in the GIT Bash shell:

composer create-project laravel/laravel cms 5.2 

But I am obtaining the following error message:

$ composer create-project laravel/laravel cms 5.2 Installing laravel/laravel (v5.2.0) - Installing laravel/laravel (v5.2.0) Downloading: 100% Created project in cms > php -r "copy('.env.example', '.env');" > php artisan clear-compiled Warning: require(C:\xampp\htdocs\cms\bootstrap/../vendor/autoload.php): failed t o open stream: No such file or directory in C:\xampp\htdocs\cms\bootstrap\autolo ad.php on line 17 Fatal error: require(): Failed opening required 'C:\xampp\htdocs\cms\bootstrap/. ./vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\cms \bootstrap\autoload.php on line 17 PHP Warning: require(C:\xampp\htdocs\cms\bootstrap/../vendor/autoload.php): fai led to open stream: No such file or directory in C:\xampp\htdocs\cms\bootstrap\a utoload.php on line 17 PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\cms\bootst rap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdoc s\cms\bootstrap\autoload.php on line 17 Script php artisan clear-compiled handling the pre-update-cmd event returned wit h error code 255 

Why? What could be the problem? Something related Windows folder permission or what?

How can I try to fix this issue?

5
  • 1
    Have you typed that php -r (...) and php artisan clear-compiled yourself? Cause it appears to me that composer hasn't even created a compiled class yet, so it's no wonder it can't find them. Commented Jan 13, 2017 at 12:14
  • Your project seems to be already created: Created project in cms. You got this error in php artisan clear-compiled. Not sure why, but you should already have all the required files. You can try to create a project Via Laravel Installer instead of Via Composer Create-Project. Commented Jan 13, 2017 at 12:16
  • Did you tried passing --no-scripts argument. Commented Jan 13, 2017 at 12:24
  • @Loek no I have only performed the composer statment Commented Jan 13, 2017 at 12:25
  • confirm the minimum server requirements for installing laravel Commented Jan 13, 2017 at 12:36

2 Answers 2

1

It appears composer is trying to flush the compiled files which aren't created yet.

Step 1) Install Laravel without scripts

composer create-project --no-scripts laravel/laravel cms 5.2 

Step 2) Run post install scripts manually.

cd cms composer run-script post-install-cmd 
Sign up to request clarification or add additional context in comments.

Comments

0

you are having problem because your version value is not complete. you also have to put subversion or asteric(*) symbol

you have to use following command for achieve what you want

composer create-project laravel/laravel cms 5.2.* 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.