Let's summarize the solutions from @jonrsharpe, @JamesAMohler and @MartinCalvert for friends looking for a quick answer.
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.
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.
You can also type to check the Vuejs version
vue --version
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.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@