Open daviesdoclc opened 2 years ago
I got the same same/similar error trying to upgrade from 4.5.13 to 5.0.1
Name Installed Wanted Latest Command to upgrade
@vue/cli-plugin-eslint 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-eslint
@vue/cli-plugin-router 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-router
@vue/cli-plugin-vuex 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-vuex
? Continue to upgrade these plugins? Yes
Upgrading @vue/cli-plugin-eslint from 4.5.13 to 5.0.1
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
With googling and lots of trial and error the following worked for me (vue upgrade
was not used at all):
npm install @vue/cli-plugin-vuex@5 --legacy-peer-deps
npm install @vue/cli-plugin-router@5 --legacy-peer-deps
npm install @vue/cli-plugin-eslint@5 --legacy-peer-deps
I was seeing this as well and confused why vue create
was working for new projects which the exact same dependencies. It looks like under the hood it's using legacy-peer-deps
when installing (see commit https://github.com/vuejs/vue-cli/pull/5961/commits/d5ad6475210483e6e613fe78d280d95af5794da8).
So if you're like me and regenerating your package-lock.json
you'll need to use that flag the first time you install things.
I got the same same/similar error trying to upgrade from 4.5.13 to 5.0.1
Name Installed Wanted Latest Command to upgrade @vue/cli-plugin-eslint 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-eslint @vue/cli-plugin-router 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-router @vue/cli-plugin-vuex 4.5.13 4.5.15 5.0.1 vue upgrade @vue/cli-plugin-vuex ? Continue to upgrade these plugins? Yes Upgrading @vue/cli-plugin-eslint from 4.5.13 to 5.0.1 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree
With googling and lots of trial and error the following worked for me (
vue upgrade
was not used at all):npm install @vue/cli-plugin-vuex@5 --legacy-peer-deps npm install @vue/cli-plugin-router@5 --legacy-peer-deps npm install @vue/cli-plugin-eslint@5 --legacy-peer-deps
Isn't it dangerous to use --legacy-peer-deps
?
Version
5.0.0-rc.1
Environment info
Steps to reproduce
I'm trying to upgrade an ionic project.
What is expected?
I expected the vue dependencies to be upgraded.
What is actually happening?
I get the following error:
I have a bug open on the ionic issues list https://github.com/ionic-team/ionic-framework/issues/24319. However, they suggested this is a vue bug and not an ionic one.