Home >Web Front-end >Front-end Q&A >How to query the current vue version
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.
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
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
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!