I know that there are two ways to create a new project in Laravel. One uses composer create-project laravel/laravel _projectname_ , and the other uses laravel new _projectname_ . I tried to create a project using the first with Composer, and there is no problem with that. But when I tried to create with the second using laravel new , he 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 as an OS, and I installed the PATH environment for %USERPROFILE%\AppData\Roaming\Composer\vendor\bin in PATH, and it works when I try to execute laravel on the command line. I always used laravel new _projectname_ before and it worked. I think that nothing has changed, but it no longer works, and I do not know why. How could this be? Any help would be greatly appreciated. Thanks.
source share