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?
Using the terminal 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. { "name": "vue-todo", "version": "0.1.
You can verify that it is properly installed by simply running vue , which should present you with a help message listing all available commands.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With