vue-cli-plugins icon indicating copy to clipboard operation
vue-cli-plugins copied to clipboard

Update @vue-cli when installing v3

Open KaelWD opened this issue 4 years ago • 12 comments

vue upgrade --all --next && npm dedupe

KaelWD avatar Oct 10 '21 10:10 KaelWD

When doing vue upgrade --all --next && npm dedupe i get this:

image

LucianHij avatar Oct 14 '21 11:10 LucianHij

I managed to make it work.

The fix for me was to manually install the latest vue/cli version: npm install -g @vue/cli@next

If anyone has this issue, write here and i will try to help with more steps.

LucianHij avatar Oct 14 '21 12:10 LucianHij

I managed to make it work.

The fix for me was to manually install the latest vue/cli version: npm install -g @vue/cli@next

Thanks!

Naurotski avatar Oct 14 '21 13:10 Naurotski

@LucianHij I did got exactly the same things as you, so i also update npm install -g @vue/cli@next but now i'm getting an error when running vue ~/.vuerc may be outdated. Please delete it and re-run vue-cli in manual mode . But I don't have any .vuerc in my project

HippolyteQuief avatar Oct 14 '21 13:10 HippolyteQuief

@HippolyteQuief firstly start with a project from scratch just to be sure that you do not have any other problems with other versions. So do npm install -g @vue/cli@next vue create my-app cd my-app && npm run serve And tell me if on a project from scratch you have the same error.

LucianHij avatar Oct 14 '21 13:10 LucianHij

First I uninstall image Next install in global again image Just to you my version image When i try to run vue create image

HippolyteQuief avatar Oct 14 '21 13:10 HippolyteQuief

try to update to node 16.10.0, this is the version i used when i had success

LucianHij avatar Oct 14 '21 13:10 LucianHij

I updated node to 16.0.0, install @vue/cli@next, until now everything is alright. But whenever i use vue i'm still getting the .vuerc error

HippolyteQuief avatar Oct 14 '21 13:10 HippolyteQuief

Try

$ sudo npm uninstall -g vue
$ sudo npm uninstall -g vue-cli
$ sudo npm uninstall -g @vue/cli
$ sudo npm cache clean --force
$ sudo npm install -g vue
$ sudo npm install -g @vue/cli@next

LucianHij avatar Oct 14 '21 14:10 LucianHij

Well, still not working, same error. I have a version where i can use vue3, typescript and vuetify.alpha-10, i will just continue on this one. Maybe it will work later when package will be updated

HippolyteQuief avatar Oct 14 '21 14:10 HippolyteQuief

@LucianHij I found the .vuerc file ! it was in C:\Users\myusername

HippolyteQuief avatar Oct 15 '21 10:10 HippolyteQuief

@HippolyteQuief great! Good job!

LucianHij avatar Oct 15 '21 10:10 LucianHij