Home >Web Front-end >Front-end Q&A >How to query the current vue version

How to query the current vue version

青灯夜游
青灯夜游Original
2022-12-19 16:55:2931711browse

Two methods to query the current vue version: 1. In the cmd console, execute the "npm list vue" command to query the version. The output result is the vue version number information; 2. Find and open it in the project In the package.json file, look for the "dependencies" item to see the version information of vue.

How to query the current vue version

The operating environment of this tutorial: windows7 system, vue2 version, DELL G3 computer.

Query the current vue version

Note: The wrong way

is in the cmd console , enter vue -V or vue --version to query the version

How to query the current vue version

but this is vue scaffolding vue-cli The version, not the vue version, was fooled.

Correct way

Method 1. In the cmd console, execute the npm list vue command to query the version

How to query the current vue version

Method 2: Open the package.json file

Go to the project, find the package.json file, look for "dependencies" and then you can see the version of vue you installed

"dependencies": {
   "axios": "^0.21.1",
   "core-js": "^3.6.5",
   "element-ui": "^2.14.1",
   "vue": "^2.6.11",
   "vue-resource": "^1.5.1"
 },

You can see that this is version 2.6.11

[Related recommendations: vuejs video tutorial, web front-end development]

The above is the detailed content of How to query the current vue version. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn