Installation

There are three primary ways to add Vue.js to a project.

  1. Import it as a CDN package
  2. Install it using npm
  3. Using build tool like Vue CLIopen in new window or Viteopen in new window.

However, for now, we will use the CDN package. To add the Vue.js framework using the CDN package, we will insert the following script tag to the <head> of our HTML.

<script src="https://unpkg.com/vue@3"></script>

Later in the course, we will learn of other ways to include Vue into a web project.