Jip Helsen
Jip Helsen

Reputation: 1346

changing vue version inside a project

Hi I would like to change a projects version of Vue using npm. I tried :

npm install vue@latest --save

But when I tried :

npm v vue

I got the following :

[email protected] | MIT | deps: none | versions: 362
Reactive, component-oriented view layer for modern web interfaces.
https://github.com/vuejs/vue#readme

keywords: vue

dist
.tarball: https://registry.npmjs.org/vue/-/vue-2.6.14.tgz
.shasum: e51aa5250250d569a3fbad3a8a5a687d6036e235
.integrity: sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==
.unpackedSize: 3.0 MB

maintainers:
- posva <[email protected]>
- yyx990803 <[email protected]>

dist-tags:
beta: 3.2.0-beta.8
csp: 1.0.28-csp
latest: 2.6.14
next: 3.2.23

published 5 months ago by posva <[email protected]>

Indicating that I still was on Vue 2.6.14. Does anyone know how to solve this problem.

Upvotes: 0

Views: 812

Answers (1)

Michal Lev&#253;
Michal Lev&#253;

Reputation: 37763

Well if you check the @latest tag on the versions tab on npm the latest version is really 2.6.14.

To use a Vue 3, you need to use a @next tag instead. But that version is not 100% compatible with 2.x so please check the migration guide before doing so (also lot of tooling is not compatible as well and because JS projects usually involve "a lot" of tooling, migration might be not that simple)

Upvotes: 1

Related Questions