question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue packages version mismatch

See original GitHub issue

Version

3.9.3

Environment info

Mac OSX
node 8.9.0
npm 6.1.0

Steps to reproduce

Type in terminal:

npm install -g @vue/cli

vue create project

What is expected?

Usual perfect bootstrap of a new vue project

What is actually happening?

Error:

Vue packages version mismatch:

  • vue@2.5.17 (/Users/vincentdupont/node_modules/vue/dist/vue.runtime.common.js)
  • vue-template-compiler@2.6.10 (/Users/vincentdupont/.nvm/versions/node/v8.9.0/lib/node_modules/@vue/cli/node_modules/vue-template-compiler/package.json)

This may cause things to work incorrectly. Make sure to use the same version for both. If you are using vue-loader@>=10.0, simply update vue-template-compiler. If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

19reactions
silvio-ecommented, Mar 20, 2020

On a Mac using Yarn I had a node_modules folder in /Users/myuser/.config/yarn/global/ . Deleting that and the yarn.lock and then do a yarn global add @vue/cli solved the problem for me.

10reactions
seifipcommented, Sep 12, 2019

On Windows the solution is to remove node_modules from your user directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix a "Vue packages version mismatch" error on ...
Module build failed: Error: Vue packages version mismatch: - vue@2.0.8 - vue-template-compiler@2.2.6 This may cause things to work incorrectly. Make sure to use ......
Read more >
Vue packages version mismatch error fix | by Allan Philip Barku
Vue packages version mismatch error occurs when Vue and Vue-template-compiler version numbers are different. Image of error message in the terminal.
Read more >
Vue packages version mismatch error · Issue #470 - GitHub
Vue packages version mismatch : - vue@2.0.5 - vue-template-compiler@2.0.6 This may cause things to work incorrectly.
Read more >
How to Fix " Vue packages version mismatch:" error in Laravel ...
Make sure to use the same version for both. If you are using vue-loader@>=10.0, simply update vue-template-compiler. If you are using vue- ...
Read more >
how to fix Vue packages version mismatch error - Laracasts
This may cause things to work incorrectly. Make sure to use the same version for both. If you are using vue-loader@>=10.0, simply update...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found