-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to update vue-cli? #212
Comments
Reinstall |
@egoist how do you update a project built with a lower version of the cli? |
@CharlesOkwuagwu you mean templates or |
I mean a project already set up with an older version of vue, how do we get the project updated via the cli |
You don't, currently. The templates+CLI don't support any kind of update process, so you will have to bump dependencies manually. Depending on what you changed in the template you are currently using, it might be easier to generate a new project, copy over |
I'd add to what @LinusBorg said that git is your friend 😄 |
...and maybe that we are thinking about how to improve upgrades in the future, but that's nothing that will happen very soon. |
Is it happening a year ago? |
Yes, actually. You can find an Alpha Version of vue-cli 3 in the |
@LinusBorg, so can we update our projects now? Or do we still have to do it the manual way? |
Nothing changed for old projects, but new projects created with vue-cli 3 can be updated by simply updating the dependencies. |
Note that if you're already on 3.0 and are trying to upgrade, |
This means you have the old |
This worked for me: Uninstall first:
Install:
|
seems we need to install the latest, I worked when I add @latest:
|
It works without |
I ran |
@typerory I think you meant to run |
vue-cli has changed to vue/cli,can see this at https://cli.vuejs.org/guide/installation.html |
Reinstall
|
sudo npm install -g @vue/cli@latest did the trick |
i first uninstalled old vue globally |
FYI on my end
I'm not sure when this got introduced, but it should probably be in https://cli.vuejs.org/? |
Hello, why must use sudo? The solution above is good, but only runs with sudo. |
Is anyone else seeing an issue when updating the @vue/cli (with sudo) they're still getting a write permission error to the Missing write access to /usr/local/lib/node_modules/@vue/cli/node_modules/ folder? |
First check which version are you using
In my case:
Then remove this version
In my case
Then
Now
Indicates
So
Then following after official docs
If any cache disturb in this process type Now
Before
Please do not use sudo installing packages by npm. You can read more about it in articles like this https://medium.com/@ExplosionPills/dont-use-sudo-with-npm-still-66e609f5f92 To manage npm dependencies i recommend use https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/ |
I'm fairly new to using npm, and I'd like to understand this better. I read the above statement from @LinusBorg that says...
Today I have projects that I created previously using
Can someone explain more explicitly (for a newbie) what should I take to update those older projects, or if I don't need to, please explain why so I can understand? |
@greatgraphicdesign @vue/cli now has experimental tools to upgrade your older projects
This will also automatically update your package-lock.json and package.json. Hope this helps |
Thank you very much! That does help. |
I install the @vue/cli |
No description provided.
The text was updated successfully, but these errors were encountered: