Check Version Of Vue

Posted on  by admin

In this tutorial, we are going to learn about how to check the vue version currently we are using in our project.

Note: This tutorial assumes that you already created a new vue project using the vue-cli. We can use the Vue.version property to check the current vue version during a runtime.

In your main.js file add the following log.

Set Up VUE CLI

Inside the terminal, you can check the vue version by running the following npm command.

or you can view the vue version directly, inside your project by opening a package.json file.

Modified10 months ago. I use Ubuntu 16.04 and I'd like to know how I check the vue.jsversion used by my project.

How do I do that? 4242 bronze badges.

Not the answer you're looking for? Browse other questions tagged vue.js or ask your own question.

95522 gold badges88 silver badges1111 bronze badges. 88 silver badges1111 bronze badges.

Let's summarize the solutions from @jonrsharpe, @JamesAMohler and @MartinCalvert for friends looking for a quick answer.

Check Current Vue Version in pacakge.json

Run npm list vue (or npm list --depth=0 | grep vue to exclude packages' dependencies).

Using the Vue.version

It is a common way to check npm package's version in the terminal. Of course, you can also check vuejs's version by browsing package.json (or use command like less package.json | grep vue).

Use Vue.version during the runtime. It is a global API provided in vue.js. 55 gold badges3737 silver badges5353 bronze badges.

5353 bronze badges. If you have the Vue.js Chrome dev tool extension installed and your application is built in development mode you can simply open up the Chrome Dev Tools and use the Vue extension tab.

Check Vue Version via Command Prompt

It is clearly displays the Vue version for the project at the top (see below).

11 gold badge2828 silver badges4242 bronze badges. 4242 bronze badges.

Please simply try type npm v vue in terminal to check the version of Vue.js.