I'd recommend using git bash instead of cmd terminal.
Check if the composer and PHP are fine: in terminal type these 2 commands
php -v
composer
Also, when you create a new project run these first
npm install
composer install
npm run dev
php artisan serve
If this doesn't work try this: Go to xampp/htdocs and run
composer create-project laravel/laravel myapp 8.*
this will install the laravel latest version 8 app. Then try the commands above.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.