[solved]Update to release METEOR@1.2.1 is impossible?


#1

I am trying to update my app to the latest meteor version, but this seems to be impossible?

$ meteor update         
Update to release METEOR@1.2.1 is impossible: 
While selecting package versions:             
error: Conflict: Constraint stylus@1.0.5 || 1.0.7 is not satisfied by stylus
2.511.1.
Constraints on package "stylus":
* stylus@=2.511.1 <- top level
* stylus@1.0.5 || 1.0.7 <- bengott:avatar 0.7.6

npm-container: updating npm dependencies -- archiver, adm-zip...
=> Errors while initializing project:         
                                      
While building package npm-container:
error: No plugin known to handle file '../../packages.json'. If you want this
file to be a static asset, use addAssets instead of addFiles; eg,
api.addAssets('../../packages.json', 'client').

My app is currently working fine on meteor v1.1.0.2 with these packages:

$ meteor list
accounts-facebook                 1.0.4* Login service for Facebook accounts
accounts-google                   1.0.4* Login service for Google accounts
accounts-password                 1.1.1* Password support for accounts
bengott:avatar                    0.7.6  Consolidated user avatar template (t...
cfs:filesystem                    0.1.2  Filesystem storage adapter for Colle...
cfs:gridfs                        0.0.27* GridFS storage adapter for Collecti...
cfs:standard-packages             0.5.3* Filesystem for Meteor, collectionFS
cfs:ui                            0.1.3  CollectionFS, provides UI helpers
chrismbeckett:toastr              2.1.0* Gnome / Growl type non-blocking noti...
copleykj:jquery-autosize          1.17.8  Automatically adjust textarea heigh...
email                             1.0.6* Send email messages
iron:router                       1.0.7* Routing specifically designed for Me...
ixdi:material-design-iconic-font  1.1.1* Material Design Icons Font
kevohagan:sweetalert              0.5.0* a beautiful replacement for javascri...
less                              1.0.14* The dynamic stylesheet language
meteorhacks:npm                   1.3.0* Use npm modules with your Meteor App
meteorhacks:ssr                   2.1.2* Server Side Rendering for Meteor wit...
meteorhacks:subs-manager          1.3.0* Subscriptions Manager for Meteor
mrt:just-i18n                     0.3.0  Internalization: minimal and best pa...
mrt:moment                        2.8.1  Moment.js, a JavaScript date library...
natestrauser:jquery-scrollto      1.4.7  jquery.scrollTo pacakged for meteor
natestrauser:select2              3.5.1* Select2 is a jQuery based replacemen...
nemo64:bootstrap                  3.3.4_2* Highly configurable bootstrap inte...
npm-container                     1.0.0+ Contains all your npm dependencies
random                            1.0.3* Random number generator and utilities
reactive-var                      1.0.5* Reactive variable
rubaxa:sortable                   1.1.1* Sortable: reactive minimalist reorde...
sacha:spin                        2.0.4* Simple spinner package for Meteor
service-configuration             1.0.4* Manage the configuration for third-p...
standard-app-packages             1.0.5* Moved to meteor-platform
tmeasday:publish-counts           0.3.9* Publish the count of a cursor, in re...
underscore                        1.0.3* Collection of small helpers: _.map, ...
zimme:select2-bootstrap3-css      1.4.6  CSS to make Select2 fit in with Boot...

I need the new meteor version, because I have to refactor for Blaze -> React.
Not sure what to do now. I don’t quite understand the error messages…
Can someone give me some advice on how to proceed?


#2

First you can try to update all packages. That might solve your version conflict.


#3

I would remove that bengott:avatar and stylus, update and add them back.


#4

This one is now fixed at a specific version. You could try to remove the = in the versions file in the Meteor directory. That might be enough.


#5

Thank you both for stepping in!

The versions file says: stylus@1.0.7, not stylus@=2.511.1
I can’t find a reference anywhere to stylus@=2.511.1
So I removed the avatar package (will try to add it back later)
Still have this error now:

$ meteor update         
=> Errors while initializing project:                                                       
While building package npm-container:
error: No plugin known to handle file '../../packages.json'. If you want this file to be a static asset,
use addAssets instead of addFiles; eg, api.addAssets('../../packages.json', 'client').

#6

it is npm-container and meteorhacks:npm :smiley:
remove these and after upgrade add that npm package back


#7

Found answer in https://github.com/meteorhacks/npm#use-npm-modules-with-your-meteor-app
As could be expected of course…

rm -rf packages/npm-container
meteor remove npm-container
meteor update meteorhacks:npm

Sorry to have bothered you for this.