dimanche 7 mars 2021

PHP artisan is not recognized

Im trying to learn PHP laravel and wanted to use artisan. I already installed laravel globally and also created my first project but everytime i run php artisan it doesnt recognize the command. I opened git on my project directory and sill not recognized.

it gives me this error. i tried downloading php manually or use the php from xampp but no changes. I used php 8.0.2 and composer 2.0.11

$ php artisan
PHP Warning:  require(C:\Users\--------\Desktop\Project\Laravel\firstProject/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan on line 18

Warning: require(C:\Users\--------\Desktop\Project\Laravel\firstProject/vendor/autoload.php): Failed to open stream: No such file or directory in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan on line 18
PHP Fatal error:  Uncaught Error: Failed opening required 'C:\Users\--------\Desktop\Project\Laravel\firstProject/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan:18
Stack trace:
#0 {main}
  thrown in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan on line 18

Fatal error: Uncaught Error: Failed opening required 'C:\Users\--------\Desktop\Project\Laravel\firstProject/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan:18
Stack trace:
#0 {main}
  thrown in C:\Users\--------\Desktop\Project\Laravel\firstProject\artisan on line 18


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire