Laravel new does not work after having updated the laravel installer

I was creating a new Laravel project.

The thing is, as a first step I have installed the Laravel installer, to update it just in case, as it appears in the documentation:

composer global require laravel/installer

Next I’m going to install the new application, with the laravel new command:

laravel new site

And I get an error indicating that a method was not found:

Crafting application… PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::fromShellCommandline() in /Users/macuser/.composer/vendor/laravel/installer/src/NewCommand.php:84

How to solve it?

See also  API development manual
Loading Facebook Comments ...
Loading Disqus Comments ...