Why do I get a laravel error while creating a new project?

Your Laravel installer is very out of date. The only way to get the latest version is to remove and install again:

composer global remove laravel/installer 
composer global require laravel/installer

  1. You need to update the installer to the latest version.

laravel-news.com/updating-the-laravel-installer

composer global require "laravel/installer:^4.0"
  1. after update you check your version using: laravel --version and you should get output like Laravel Installer 4.0.3