Laravel throw console warning

I’m starting use laravel for a project. I’ve installed it like it’s suggested on the official documentation, hovever, if I type laravel new projectname after I navigate to the macOS sites folder, It will give this errors

host:~ z$ laravel new kcms
Crafting application...
PHP Fatal error:  Uncaught Error: Call to undefined method SymfonyComponentProcessProcess::fromShellCommandline() in /Users/z/.composer/vendor/laravel/installer/src/NewCommand.php:84
Stack trace:
#0 /Users/z/.composer/vendor/symfony/console/Command/Command.php(255): LaravelInstallerConsoleNewCommand->execute(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#1 /Users/z/.composer/vendor/symfony/console/Application.php(886): SymfonyComponentConsoleCommandCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#2 /Users/z/.composer/vendor/symfony/console/Application.php(262): SymfonyComponentConsoleApplication->doRunCommand(Object(LaravelInstallerConsoleNewCommand), Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#3 /Users/z/.composer/vendor/symfony/console/Application.php(145): SymfonyComponentConsoleApplicat in /Users/z/.composer/vendor/laravel/installer/src/NewCommand.php on line 84

Fatal error: Uncaught Error: Call to undefined method SymfonyComponentProcessProcess::fromShellCommandline() in /Users/z/.composer/vendor/laravel/installer/src/NewCommand.php on line 84

Error: Call to undefined method SymfonyComponentProcessProcess::fromShellCommandline() in /Users/z/.composer/vendor/laravel/installer/src/NewCommand.php on line 84

Call Stack:
    0.0002     394608   1. {main}() /Users/z/.composer/vendor/laravel/installer/bin/laravel:0
    0.0081    1414560   2. SymfonyComponentConsoleApplication->run() /Users/z/.composer/vendor/laravel/installer/bin/laravel:13
    0.0202    1807648   3. SymfonyComponentConsoleApplication->doRun() /Users/z/.composer/vendor/symfony/console/Application.php:145
    0.0203    1807648   4. SymfonyComponentConsoleApplication->doRunCommand() /Users/z/.composer/vendor/symfony/console/Application.php:262
    0.0204    1807648   5. LaravelInstallerConsoleNewCommand->run() /Users/z/.composer/vendor/symfony/console/Application.php:886
    0.0209    1812424   6. LaravelInstallerConsoleNewCommand->execute() /Users/z/.composer/vendor/symfony/console/Command/Command.php:255

what’s wrong?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *