如何检查项目 vue.js 版本? [英] How to check a projects vue.js version?
问题描述
我使用 Ubuntu 16.04,我想知道如何检查我的项目使用的 vue.js
version.>
我该怎么做?
让我们总结一下来自@jonrsharpe、@JamesAMohler 和@MartinCalvert 的解决方案,供寻求快速答案的朋友使用.
运行
npm list vue
(或npm list --depth=0 | grep vue
以排除包的依赖项).这是常用方法在终端中查看 npm 包的版本.当然,你也可以通过浏览package.json来查看vuejs的版本(或者使用
less package.json | grep vue
之类的命令).在运行时使用
Vue.version
.它是 vue.js 中提供的全局 API.
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?
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.
这篇关于如何检查项目 vue.js 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!