What Are The Steps To Install Vuejs In laravel Project

admin_img Posted By Bajarangi soft , Posted On 27-11-2020

Today we discuss how to install node.js and npm package to use vuejs in laravel and to run the vue files we use npm run dev

What Are The Steps To Install Vuejs In laravel Project

Let's learn

Step 1.Install new laravel project to implement code. https://laravel.com/docs/5.8/installation

composer create-project --prefer-dist laravel/laravel blog

run above command in command prompt.

Step 2.Install node.js package for blog project . click here to download it.
Step 3.Install npm package for blog project.
click here to see the documentation.Install the dependencies in the local node_modules folder.

npm install

run above command in terminal.
 

Step 4.Run command npm run watch.

npm run dev  active and  updates only when you run command.
npm run watch does the same, but then it stays active and "watches" for updates.vue and .js files. If it detects a change so you can just refresh the page.

Related Post