[Vuejs]-Vue packages version mismatch error while installing Nuxt.js: How to resolve?

0👍

As a solution, you can:

1 – try npm install after removing the "node_modules" folder and the "package-lock.json" file.

2 – Try yarn install.

3 – Try again with the new version, v3.4.3.

I edited this because, as Wongjn said, I asked for clarification. However, providing a minimal, reproducible example would be nice, given the nature of the problem and how hard replicating the issue is.

0👍

This is because vue-server-renderer is only for Vue2 and not for Vue3. Source

Just remove the package vue-server-renderer, you’ll get SSR features from nuxt.

npm remove vue-server-renderer

Then, delete your node_modules folder, then try again: npx nuxt init nuxt3-demo.

Leave a comment