How to check a projects vue.js version?
Solution 1:
Let's summarize the solutions from @jonrsharpe, @JamesAMohler and @MartinCalvert for friends looking for a quick answer.
Run
npm list vue
(ornpm list --depth=0 | grep vue
to exclude packages' dependencies). 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.
Solution 2:
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)
Solution 3:
Please simply try type npm v vue
in terminal to check the version of Vue.js