Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating all Meteor packages to latest versions

Tags:

I'm developing a Meteor app that isn't yet in production, so I can afford to move quickly when adopting new package versions (useraccounts had a significant version bump a few hours after I'd integrated it, for instance.) This was what I thought meteor update was meant to accomplish. Yet when I run:

meteor update

from my project, I'm told that packages were updated but .meteor/versions remains unchanged.

I can upgrade the package by running meteor add someone:package@whatever, but this just shuffles the version dependency from .meteor/versions to .meteor/packages even though it seems to do the upgrade. I'm happy to lock versions down when I go to production, but it seems like in development I should be able to use the update command, especially as meteor list indicates that as a next step.

I've managed to upgrade all my packages by removing .meteor/versions and .meteor/local and running meteor update, but this seems messy.

I also found this issue but it was closed. Should it be reopened or should I open a new issue? I understand how semver works, but I think the issue is that Meteor isn't writing its constraint solver results to .meteor/versions so doesn't realize that package updates have been applied. Is that accurate or am I just misunderstanding something?

like image 342
Nolan Avatar asked Feb 19 '15 17:02

Nolan


People also ask

How do you update meteor packages?

If you want to update to a newer version of a package after installing it, use meteor update . You can run meteor update without any arguments to update all packages and Meteor itself to their latest versions, or pass a specific package to update just that one, for example meteor update ostrio:flow-router-extra .

How do I update meteor to specific version?

The Meteor Tool will notify you when a newer release is available. You can also update specific packages by passing their names as a command line argument to meteor update , for example: meteor update [packageName packageName2 ...]

What version is meteor?

There are two places where you should check your Meteor version. There is a main Meteor tool, installed to your home folder: /Users/nearpoint/. meteor . It has auto-updater and it keeps copies of Meteor for different versions installed.

What is meteor NPM?

What is Meteor? Meteor is a full-stack JavaScript platform for developing modern web and mobile applications. Meteor includes a key set of technologies for building connected-client reactive applications, a build tool, and a curated set of packages from the Node. js and general JavaScript community.


1 Answers

now u can simply do

meteor update --all-packages 
like image 60
Feki Zied Avatar answered Dec 25 '22 06:12

Feki Zied