xxxxxxxxxx
Probably you are in the wrong directory (•◡•)/
xxxxxxxxxx
#try this instead to create laravel project:
composer create-project laravel/laravel testapp --prefer-dist
#then run
composer require livewire/livewire
xxxxxxxxxx
//you have to call artisan from root directory
$ cd root/file/path