How to install vue.js version 2

Viewed 16143

I want to install version 2 of vue.js to use vuetify. However, I don't know the command for that. Could someone pass the command to me please

3 Answers

If you are looking for a specific version of Vue2 you can run the following command with npm: npm install vue@2.x.x or if you want the latest, simply npm install vue.

For vue3 it is: npm install vue@next

Сreated a new Vue.js project using Vue CLI. Select during installation Vue2

vue create my-app
# navigate to new project directory
cd my-app

Add vuetify

vue add vuetify
npm install vue@2.x.x --save 

It will update package.json as well. so later on, if you need to install the project from git, by running npm install easily package can be installed

Related