How to install Vue.JS for Development on CentOS 7

Vue.JS is a JavaScript progressive front-end framework for building User Interfaces (UI). Vue is a monolithic framework and designed to be incrementally adoptable. The core library is focused on the view layer only and is easy to pick up and integrate with other libraries or existing projects, Also Vue.JS is perfectly capable of developing complicated Single-Page Applications (SPA).
Vue was created by Evan You after working for Google using AngularJS in a number of projects. He later summed up his thought process and start creating his own framework, Vue was originally released in February 2014.

Install Node.JS

First of all, we need to install Node.JS and NPM to be able to serve and start our Vue project. The latest stable version of Node.JS is “8.9.4 LTS” at the time of writing this tutorial:

curl --silent --location | sudo bash -

After adding the official repository you can easily install Node.js and NPM with the following command:

yum install nodejs

You can check and verify your Node.js and NPM that you have installed using the following commands:

node -v

npm -v

Install Vue.JS

You can install Vue.js using its official CLI, so we have to install the CLI using NPM:

npm install -g vue-cli

Now you can switch to a directory where you want to store your project, and then install Vue.js files with the command below:

vue init webpack your-project

Switch to your project directory to install dependencies:

cd your-project

npm install

Now you have installed Vue.JS completely and you can start developing and testing it right away, executing the following command will start serving your project in a development environment to test around:

npm run dev

You can see that your project is now running on:


You can check out Vue.JS official website for more information and news!

Be the first to comment

Leave a Reply

Your email address will not be published.