How do I check my vue.js version?

2019-04-18 04:50发布

I use Ubuntu 16.04 and I'd like to know how I check the vue.js version on my project.

How do I do that?

标签: vue.js
3条回答
三岁会撩人
2楼-- · 2019-04-18 05:31

You can also type to check the Vuejs version vue --version

查看更多
地球回转人心会变
3楼-- · 2019-04-18 05:37

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.

查看更多
地球回转人心会变
4楼-- · 2019-04-18 05:41

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@

查看更多
登录 后发表回答