There are three ways of doing the installation of Vue. One is via CDN (Content Delivery Network), second is by NPM (Node Package Manager), and the last is by running Vue in CLI (Command Line Interface).
Setup Vue.js via CDN
This is the most recommended and easiest way to start Vue.js for beginners. All you need to do is to download the vue.js file or directly include the <script> tag using https://unpkg.com/vue.
Setup Vue.js by NPM
To setup Vue using NPM, we need two things needed to install and those two are the following;
2.) NPM (Node Package Manager)
To install NodeJS, you can visit http://nodejs.org/en/download and look for the installer suitable for your machine. In this case, we prefer using Ubuntu 14.04 LTS.
In ubuntu, type and initialize,
sudo apt-get update
sudo apt-get install nodejs
After the installation, try to check if the NodeJS is installed by typing node -v.
It will print an output similar to this image.
Next, we need to install the package manager. We can achieve this by typing the following command.
sudo apt-get install npm
It will print the version of NPM installed in your machine the same with this image.
After installing the bundles and packages needed (NodeJS and NPM), We can now get and install Vue.js by typing this in your terminal.
For newly installed NPM, you need to have a package.json file before you proceed. To initialize this JSON file you need to type npm init in your terminal; if you already have the JSON file you can proceed installing js by typing npm install vue. It will download the whole package of vue, modules and other resources. (See image below).