Trouble upgrading due to incompatible packages

I’m attempting to upgrade from Meteor 1.10.2 to the latest version (2.1).

I get the following errors when doing so and --allowIncomptaibleUpdate doesn’t help either. Is there a quick way to fix this or do I have to go through each of the old packages that is causing an issue and upgrade them?

=> Errors while initializing project:         
                                              
While selecting package versions:
error: Conflict: Constraint less@3.0.1 is not satisfied by less 2.8.0.
Constraints on package "less":
* less@2.8.0 <- top level
* less@3.0.1 <- accounts-ui 1.3.2
* less@3.0.1 <- accounts-ui-unstyled 1.4.3 <- accounts-ui 1.3.2* less@2.5.6 <- notifications 0.0.7* less@2.5.0_1 <- joshowens:shareit 1.0.3* less@2.5.1 <- huttonr:bootstrap3 3.3.6_13
Conflict: Constraint email@1.0.4 is not satisfied by email 2.0.0.
Constraints on package "email":
* email@2.0.0 <- top level
* email@~2.0.0 <- top level
* email@2.0.0 <- accounts-password 1.7.0
* email@1.0.4 <- yogiben:pretty-email 0.0.7
* email@1.0.6 <- lookback:emails 0.7.8
* email@1.0.0||2.0.0-beta||2.0.0 <- montiapm:agent 2.39.0

Conflict: Constraint email@1.0.6 is not satisfied by email 2.0.0.
Constraints on package "email":
* email@2.0.0 <- top level
* email@~2.0.0 <- top level
* email@2.0.0 <- accounts-password 1.7.0
* email@1.0.4 <- yogiben:pretty-email 0.0.7
* email@1.0.6 <- lookback:emails 0.7.8
* email@1.0.0||2.0.0-beta||2.0.0 <- montiapm:agent 2.39.0

Seems to be an issue even updating to 1.12.1.

lookback:emails and yogiben:pretty-email depend on very old versions of email. You will need to either find replacements for them or fork them and update them.

1 Like

As @copleykj notes, try updating a forked package. To add it to your app’s repo and override the Atmosphere version, e.g., with this fork: https://github.com/Favro/meteor-emails.git of lookback:emails you can do:

$ cd /path/to/app/
$ meteor remove lookback:emails
$ mkdir packages && cd packages
$ git submodule add https://github.com/Favro/meteor-emails.git
$ cd .. && meteor add lookback:emails

Meteor will pick up the local version, which you can now edit.