How to query the current vue version

青灯夜游
Release: 2022-12-19 16:55:29
Original
31592 people have browsed it

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 , entervue -Vorvue --versionto 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 thenpm list vuecommand 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" },
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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