How to check a projects vue.js version?

前端 未结 1 407
鱼传尺愫
鱼传尺愫 2021-02-11 12:49

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?

相关标签:
1条回答
  • 2021-02-11 13:28

    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.

    0 讨论(0)
提交回复
热议问题