Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
This repository was archived by the owner on May 5, 2025. It is now read-only.

Meteor-Tool version vs. Meteor project version on Windows #4

Description

@sjkummer

Hi @Mairu

First of all: Thanks for still maintaining this project!

I ran in something tricky related to inconsistent Meteor version usage. There is a workaround which includes manually exchanging paths in meteor.bat but hopefully, this can be avoided by fixing the library.

Problem description:

Using this library on Windows with a Meteor project that is not using the most recent meteor version available can lead to an App-Package which includes newer MongoDB- and Node-executables than expected by the meteor code resulting in an App that instantly crashes on start.

How-to reproduce:

  1. Start with a new Windows environment
  2. Install Meteor, resulting in a local Meteor-Tool-Version of 1.10.x or higher
  3. Checkout an older Meteor project on the machine (e.g. using Meteor 1.8.x)
  4. The old project can successfully run on the machine using meteor
  5. The packaged App (using electrify package 4.0.0) cannot be executed, instead it instantly crashes
  6. The versions of the packaged mongo and node binaries are too new (e.g. mongo 4.2 instead 4.0)

Workarround

  • Navigate to C:\Users\<USERNAME>\AppData\Local\.meteor
  • Edit meteor.bat set the path to the exact Meteor version which is used in your project
  • Re-package the app -> Correct binary versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions