jeudi 28 janvier 2016

Error when created laravel 5 project

i know there 2 ways to create new project in laravel. One using composer create-project laravel/laravel _projectname_ and another with laravel new _projectname_. I tried to create project using the first one with composer, and it has no problem with it. But when i tried to create with the other one using laravel new, it returned this error:

$ laravel new _projectname_
    Crafting application...
    > php -r "copy('.env.example', '.env');"
    > php artisan clear-compiled
    Script php artisan clear-compiled handling the post-install-cmd event returned with an error


      [RuntimeException]
      Error Output:


    run-script [--dev] [--no-dev] [-l|--list] [--] [<script>] [<args>]...

    Application ready! Build something amazing. 

I used Windows OS and I've set the environment PATH for %USERPROFILE%\AppData\Roaming\Composer\vendor\binin PATH, and it works when i tried laravel keyword in command prompt. I've ever tried the laravel new _projectname_ before and it works, i think i change nothing, but it doesn't work now and i dont know why .how could it be?, any help would be appreciated. Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire