I'm following this tutorial: https://laravel-news.com/your-first-laravel-9-application
But possibly having an issue with one command and I'm definately having an issue with another command.
When I get to this line: npm install && npm run dev
The terminal never seems to finish, it never returns back to my bash command prompt. It just sits there with this output and a blinking cursor, I'm not returned to my bash prompt until I hit Ctrl-C.
VITE v3.2.5 ready in 344 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
LARAVEL v9.43.0 plugin v0.7.1
➜ APP_URL: http://localhost
And when I get to this line, I'm actually getting an error: php artisan migrate
Illuminate\Database\QueryException
could not find driver (SQL: PRAGMA foreign_keys = ON;)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
+41 vendor frames
42 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Here's my .env database block, I have it set exactly as he has it in the tutorial:
DB_CONNECTION=sqlite
DB_DATABASE=/var/www/html/bookmarker/database/database.sqlite
DB_FOREIGN_KEYS=true
I'm having a hard enough time learning laravel beceause of how everyone wants to teach it, but I can't even struggle through that because I have get to get a tutorial or course project without encountering one or more project stopping errors. Any/all help appreciated, thanks.