如何检查项目 vue.js 版本? [英] How to check a projects vue.js version?

查看:42
本文介绍了如何检查项目 vue.js 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Ubuntu 16.04,我想知道如何检查我的项目使用的 vue.js version.>

我该怎么做?

解决方案

让我们总结一下来自@jonrsharpe、@JamesAMohler 和@MartinCalvert 的解决方案,供寻求快速答案的朋友使用.

  1. 运行 npm list vue(或 npm list --depth=0 | grep vue 以排除包的依赖项).这是常用方法在终端中查看 npm 包的版本.

  2. 当然,你也可以通过浏览package.json来查看vuejs的版本(或者使用less package.json | grep vue之类的命令).

  3. 在运行时使用 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.

  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.

这篇关于如何检查项目 vue.js 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆