Error coming when trying to run server or do migrations

This error is coming from where whenever I try any console command from cake, like bin/cake server or bin/cake migrations migrate.

Error that I am getting:- bin/cake migrations migrate

PHP Fatal error:  Cannot redeclare Cake\I18n\__() (previously declared in C:\Users\aispl_admin\repos\Projects\pocor-openemis-core\vendor\cakephp\cakephp\src\I18n\functions.php:31) in C:\Users\aispl_admin\repos\Projects\pocor-openemis-core\vendor\cakephp\cakephp\src\I18n\functions.php on line 40                                     

Fatal error: Cannot redeclare Cake\I18n\__() (previously declared in C:\Users\aispl_admin\repos\Projects\pocor-openemis-core\vendor\cakephp\cakephp\src\I18n\functions.php:31) in C:\Users\aispl_admin\repos\Projects\pocor-openemis-core\vendor\cakephp\cakephp\src\I18n\functions.php on line 40

I only did composer install. I am new to cakephp, If anyone knows about this please let me know.

Try reinstalling your composer modules via

rm -rf vendor
composer install

also I’d recommend you check your app with what is currently present in GitHub - cakephp/app: CakePHP application template · GitHub as there could be changes you need to do.