close

[Solved] The “no-ansi” option does not exist in Laravel

Hello Guys, How are you all? Hope You all Are Fine. I am trying to create laravel project on windows but this problem shows to me and I try to update the composer. The “no-ansi” option does not exist in Laravel. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

How The “no-ansi” option does not exist in Laravel Error Occurs ?

I am trying to create laravel project on windows but this problem shows to me and I try to update the composer. The “no-ansi” option does not exist in Laravel.

_                               _
| |                             | |
| |     __ _ _ __ __ ___   _____| |
| |    / _` | '__/ _` \ \ / / _ \ |
| |___| (_| | | | (_| |\ V /  __/ |
|______\__,_|_|  \__,_| \_/ \___|_|


In Input.php line 150:

  [Symfony\Component\Console\Exception\InvalidArgumentException]
  The "no-ansi" option does not exist.


Exception trace:
  at /Users/martylamoureux/.composer/vendor/symfony/console/Input/Input.php:150

How To Solve The “no-ansi” option does not exist in Laravel Error ?

Question: How To Solve The “no-ansi” option does not exist in Laravel Error ?
Answer: This is a problem with the latest version of the Symfony Console component, which is 5.3.0. Composer is based on this library, but you can downgrade to the previous version 5.2.8 with this command:

Solution 1

This is a problem with the latest version of the Symfony Console component, which is 5.3.0. Composer is based on this library, but you can downgrade to the previous version 5.2.8 with this command:

composer global require symfony/console:5.2.x

And then force the update with:

composer global update

Solution 2

I also encountered this issue, with symfony/console:5.3.0. Downgrading to symfony/console:5.2.8 resolved the issue for me.

composer global require symfony/console:5.2.x

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment