Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you check which version of Meteor you are running?

I am having a similar problem as described here: meteor > error: no such package: 'accounts-urls'

To fix this issue it looks like I have to downgrade my version of Meteorite to get 'accounts-ui-bootstrap-dropdown' to work.

But first I want to check which version of Meteor I am currently running.

How can I do this? I am running Meteor on a mac with terminal.

like image 304
Nearpoint Avatar asked Aug 17 '13 15:08

Nearpoint


People also ask

How do I update my meteor package?

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 .


2 Answers

There are 2 versions

1. Global tool version of meteor command

Find version by:

meteor --version # CAUTION this will auto update your meteor release !!!!! 

2. Project version of meteor

A project stays at the meteor version which it was created with unless manually upgraded. Find this by running:

cat .meteor/release 
like image 165
Peppe L-G Avatar answered Sep 28 '22 02:09

Peppe L-G


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.

Another place is your project's folder. project/.meteor/release contains version of Meteor this project is using. Even if your main Meteor tool updated, it will still use the pinned version for your project, so backward incompatible changes will not break unless you want it.

To update main Mteor tool (usually it auto-updates but if it doesn't) just run curl https://install.meteor.com | sh.

To update version for your project run in your project's folder:

meteor update 

to update to the latest release or

meteor update --release 0.6.4.1 

if you want to upgrade (or downgrade) to the specific release. Now if you look at .meteor/release file in your project, it will change to new pinned release.

like image 35
imslavko Avatar answered Sep 28 '22 02:09

imslavko