Vue-- the results of version and npm view vue versions are not the same?

when I check the version with npm view vue versions, the highest version is 2.5.21
, but when I use the vue-- version command, why is the version 3.0.4
the problem is that the maximum vue is 2.5.21, so what"s wrong with my 3.0.4 version number?

clipboard.png

clipboard.png

Feb.24,2022

npm view vue versions

is the version information of the vue you are using

vue --version

the vue entered on the command line is not vue, but vue-cli, the command line build tool

.

you vue--version are you looking at the version of vue-cli


it is true that vue-cli, does not understand the version relationship between vue and vue-cli now.

Menu