Sometimes, we want to check a project’s Vue.js version.
In this article, we’ll look at how to check a project’s Vue.js version.
How to check a project’s Vue.js version?
To check a project’s Vue.js version, we can log the Vue.js version number with several methods.
One way is to use the Vue.version
property, which we get by writing
import Vue from "vue";
console.log(Vue.version);
in our code.
Another way is to run
npm v vue
or
npm list vue
from the command line in our project folder to find the Vue version.
Conclusion
To check a project’s Vue.js version, we can log the Vue.js version number with several methods.