php - Error when creating Laravel 5 project -


i know there 2 ways create new project in laravel. 1 using composer create-project laravel/laravel _projectname_ , using laravel new _projectname_. tried create project using first 1 composer, , there no problem it. when tried create second 1 using laravel new, returned error:

$ laravel new _projectname_     crafting application...     > php -r "copy('.env.example', '.env');"     > php artisan clear-compiled     script php artisan clear-compiled handling post-install-cmd       event returned error         [runtimeexception]       error output:       run-script [--dev] [--no-dev] [-l|--list] [--] [<script>] [<args>]...      application ready! build amazing.  

i used windows os , i've set environment path %userprofile%\appdata\roaming\composer\vendor\bin in path, , works when try laravel commend in command prompt. i've used laravel new _projectname_ before , worked. think changed nothing, doesn't work anymore , don't know why. how be? appreciated. thanks.

i've found answer, got https://laracasts.com/discuss/channels/general-discussion/cant-use-laravel-new-app-name. update laravel using composer global require "laravel/installer" . after finished, tried run laravel new _projectname_, update dependencies , works me. hope helps.


Comments