Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check a projects vue.js version?

Tags:

vue.js

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?

like image 781
Junior Vilas Boas Avatar asked Feb 27 '18 22:02

Junior Vilas Boas


People also ask

How do I find vue version in project?

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.

How do you check VueJS is installed or not?

You can verify that it is properly installed by simply running vue , which should present you with a help message listing all available commands.


1 Answers

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.

like image 170
choasia Avatar answered Sep 29 '22 20:09

choasia