How to check a projects vue.js version?

vue.js

vue.js Problem Overview


I use Ubuntu 16.04 and I'd like to know how I check the vue.js version used by my project.

How do I do that?

vue.js Solutions


Solution 1 - vue.js

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

  1. Run npm list vue (or npm list --depth=0 | grep vue to exclude packages' dependencies). It is a common way to check npm package's version in the terminal.

  2. Of course, you can also check vuejs's version by browsing package.json (or use command like less package.json | grep vue).

  3. Use Vue.version during the runtime. It is a global API provided in vue.js.

Solution 2 - vue.js

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. It is clearly displays the Vue version for the project at the top (see below)

enter image description here

Solution 3 - vue.js

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

Solution 4 - vue.js

This is what worked for me:

import Vue from 'vue'

alert(`Vue version : ${Vue.version}`);

Solution 5 - vue.js

If you want to check the current version of Vue installed in your machine use vue --version

If you want to check the Vue installed on the project then use npm list | grep vue@

Solution 6 - vue.js

It can be checked from package.json file. Inside dependencies block you can see vue and its version.

"dependencies": { "vue": "^2.6.11" }

Solution 7 - vue.js

There are few ways to check vue version:

  1. npm v vue run this on the terminal
  2. Check package.json, code will be something like this
"dependencies": {
    "core-js": "^3.6.5",
    "vue": "^2.6.11"
  },
  1. If you have vue dev tools installed then go to the Vue tab and you should be able to see the version there. enter image description here

Note: If you use vue --version - this will check vue cli version, not Vue version

Solution 8 - vue.js

if you have installed vue dev tools extension like I recommend, you can just press ctrl + shift + i at least in the firefox and then look with vue extension picture

You can also just use npm v vue in command prompt, you cant use vue --version becausue this checks what Vue CLI you have

Solution 9 - vue.js

You can also type to check the Vuejs version vue --version

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJunior Vilas BoasView Question on Stackoverflow
Solution 1 - vue.jschoasiaView Answer on Stackoverflow
Solution 2 - vue.jsScottyGView Answer on Stackoverflow
Solution 3 - vue.jsTiahinView Answer on Stackoverflow
Solution 4 - vue.jsAakashView Answer on Stackoverflow
Solution 5 - vue.jsVenkata Sai KatepalliView Answer on Stackoverflow
Solution 6 - vue.jsShwetaView Answer on Stackoverflow
Solution 7 - vue.jsmk22View Answer on Stackoverflow
Solution 8 - vue.jsWhite TigerView Answer on Stackoverflow
Solution 9 - vue.jsMayur KapadiaView Answer on Stackoverflow