Liondalan
Liondalan

Reputation: 67

Vue not installing in Laravel

When I install Vue.js with Laravel framework, it doesn't create asset folder nor does it change app.js file inside asset folder. I used Npm install and then npm run watch, but when I navigate my self to the resource folder, it stays the same and I can locate Vue in package.json file. Why?

Upvotes: 4

Views: 2361

Answers (2)

Usama Tariq
Usama Tariq

Reputation: 1

use these commands

1:composer require laravel/ui --dev
2:php artisan ui vue
3:php artisan ui vue --auth
4:npm install
5:npm run dev
php artisan serve

Note: you can use Either 2 or 3.

Upvotes: 0

Rashed Hasan
Rashed Hasan

Reputation: 3751

Please run these commands in your terminal-

  1. composer require laravel/ui --dev
  2. php artisan ui vue
  3. php artisan ui vue --auth
  4. npm install
  5. npm run dev
  6. php artisan serve

Upvotes: 8

Related Questions