Install And Run The Vue JS 3 Project Using Vue CLI [2024]
Tags: javascript, beginners, tutorial, vue
Published: 2021-11-01 12:13:06

{% youtube Qo2fPuomVHM %}

In this tutorial, you’re going to learn how to get up and running with the Vue 3 project from scratch with step-by-step instructions.

- [Install Node.js & NPM Package](https://softauthor.com/up-and-running-with-vuejs3-project/#install-nodejs-npm-package)
- [Vue CLI 4.5 or Higher](https://softauthor.com/up-and-running-with-vuejs3-project/#install-vue-cli)
- [Create A Vue 3 Project](https://softauthor.com/up-and-running-with-vuejs3-project/#create-a-vuejs3-project)
- [Run Vue 3 Web App](https://softauthor.com/up-and-running-with-vuejs3-project/#run-vuejs3-app)

###Install node.js & npm package

The first step is to install Node.js & NPM (Node Package Manager) to your computer.

You can check to see if they’re already installed by going to the Terminal/Command prompt window in your computer and running a couple of commands.

To check the installed version of node js:

```JavaScript
node -v
```

>*If you already have it installed, make sure it’s version 10 or above.*
 
To check the npm, run the following command:

```JavaScript
 npm -v
```

If they’re not installed you’ll get the “command not found” message or something similar when running node and npm version check commands.

In that case, you will need to install them.

So, head over to the [Node.js](https://nodejs.org/en/) Website in your browser – you can see two versions and I would recommend using LTS which is the more stable version and it also says recommended for most users.

Click the LTS button which then starts downloading the Node.js package file on the computer. 

![Alt text of image](https://softauthor.com/wp-content/uploads/2021/04/up-and-running-with-vue3-install-nodejs-2.png)

Double click the package file to install it which will bring up the installer window. You can pretty much install like you would other applications.

As you can see from the introduction tab, I’m not only installing node.js but also npm – so we do not need to install them separately.

![Alt text of image](https://softauthor.com/wp-content/uploads/2021/04/up-and-running-with-vue3-install-npm-1.png)

Hit Continue, Continue,

Then Agree and install, which will ask for the admin password. Once the password is entered, it’ll take a few seconds to complete the installation process.

The next step is to install Vue CLI.

###Install Vue CLI

So, what is Vue CLI?

Vue CLI is an official vue npm package that allows you to create a vue project quickly on your computer.

Let’s install it globally, so that you can create a vue project anywhere on the computer.

Open up the Terminal window and run the following command:

```JavaScript
npm install -g @vue/cli
```
It will take a few seconds to complete the installation process.

If it says that you do not have permission, just run the command again by adding sudo in front of it like so, which will ask you to enter your admin password and then you will be all set.

```JavaScript
sudo npm install -g @vue/cli
```

In order to create a vue 3 project, we need a vue cli version of at least 4.5 or above.

If you’ve already installed vue cli, you can check the version using the following command:

```JavaScript
vue --version
```

If you have a version lower than 4.5, you can simply upgrade it by running the command below:

```JavaScript
npm upgrade --next
```

The next step is to create a vue 3 project.

###Create A Vue 3 Project

[Continue Reading...](https://softauthor.com/up-and-running-with-vuejs3-project/#run-vuejs3-app)