Laravel Symfony/console , installation failed because of "Invalid argument"?

You have to disable windows defender or other anti-virus programs; also, check you have proper permissions to the folder.

how to disable windows defender:

  • search setting in windows
  • click windows security, below you will see virus and threat protection
  • turn off real time protection, then create project in laravel, it will run with zero errors

enter image description here


I had the same issue. Windows Defender detected Trojan:Script/Foretype.A!ml on symfony/console (v5.1.7) After i disabled the Virus Protection i was able to finish the install.