Skip to content
Related Articles

Related Articles

Vue.js | Introduction & Installation

Improve Article
Save Article
  • Difficulty Level : Basic
  • Last Updated : 06 Jun, 2022
Improve Article
Save Article

This guide is for Vuejs version 2

VueJS is one of the best frameworks for JavaScript like ReactJS. The VueJS is used to design the user interface layer, it is easy to pick up for any developers. It is compatible with other libraries and extensions as well. If you want to create a single page application then VueJS is the first choice in my opinion. In the development field, there may be so many issues that can not be solved by using a single library, so the VueJS is compatible with other libraries so you can easily go for it. The VueJS is supported by all popular browsers like Chrome, Firefox, Safari, etc. You can easily compare this library with your favorite libraries.

Installation of VueJS: The VueJs can be used in three different ways those are listed below:

  • Directly included CDN file.
  • Install through the npm.
  • Using CLI

Note: add sudo before every command while using Linux based operating systems and Mac operating systems in order to avoid storage permissions. 

Directly include CDN file: You need to download the VueJS Development Version and Production Version then include it in the script tag. CDN:

  1. For learning purpose, you can use below script(with the specific version):

<script src=””>


  1. For production purposes, you can use below script:

<script src=”″>


  1. For ES modules compatible, use below script:

<script type=”module”>
 import Vue from ‘’

Install through the npm: Before applying this procedure you must have installed npm, to check npm installed or not run the below command:

npm -v

If not, you can install that through node.js installation procedure for:

  1. Installation of Node.js on Windows
  2. Installation of Node.js on Linux

Now you are ready to install the VueJS, to do so run the below command. It will install the most updated stable version of VueJS.

npm install vue

Using CLI: Open your terminal or command prompt and run the below command.

npm install -g @vue/cli

Let’s create a project through CLI:

  • Step 1: Run the below command to create the project.
vue create myproject

  • Step 2: Now get into the myproject folder by using below command.
cd myproject
  • Step 3: Run the below command to run your project locally.
npm run dev

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!