webhook / webhook-cms

The CMS layer for Webhook.com
http://www.webhook.com
MIT License
178 stars 41 forks source link

bower install fails - unable to find a suitable version for ember-data & conflicting firebase v1 / v2 dependencies #189

Closed liamjones closed 9 years ago

liamjones commented 9 years ago

Can someone confirm that setting up webhook-cms for development as explained in the readme is currently working? If so, what versions do you have in your dependency tree? I'm trying to set it up on OS X 10.7.5 here w/ node 0.10.33 & npm 2.1.12 and I'm having issues.

I've forked and cloned the repo but I can't complete the npm install. It gets to bower install as part of the postinstall task and this is where the issues start.

First, this was bugging out with TypeError: Arguments to path.join must be strings which, after some googling looks like was caused by bower/bower#1403. I fixed this by pinning tmp to 0.0.23 so it wouldn't auto-resolve to 0.0.24 (liamjones/webhook-cms@71c5512868ccead5d2c5baf68cf5f5726d8005c8).

Once past that issue I run into conflicting dependencies and am presented with this:

Please note that,
    firebase-simple-login#1.6.4 depend on firebase#1.0.x which resolved to 1.0.24
    ember-app-kit, emberfire#1.3.1 depend on firebase#2.0.x which resolved to 2.0.6

Resort to using firebase#2.0.x which resolved to 2.0.6
Code incompatibilities may occur.

Unable to find a suitable version for ember-data, please choose one:
    1) ember-data#* which resolved to e-tag:0a26a3ee5 and has emberfire#1.3.1 as dependants
    2) ember-data#1.0.0-beta.11 which resolved to 1.0.0-beta.11 and has ember-app-kit as dependants
    3) ember-data#~1.0.0-beta.7 which resolved to 1.0.0-beta.12 and has ember-qunit#0.1.8 as dependants

Prefix the choice with ! to persist it to bower.json

[?] Answer:

Unsurprisingly, picking any of the three results in the bower install process erroring out due to conflicts.

gpbmike commented 9 years ago

We're using ember ember-data#1.0.0-beta.11. What's the bower install error that you're getting?

liamjones commented 9 years ago

There's a load of unmet dependency output from express ('requires something@x but will load something@y') followed by:

npm ERR! peerinvalid The package ember-template-compiler does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-ember-templates@0.4.18 wants ember-template-compiler@>=1 <2

Here's a showterm with the complete log playback from npm install and selecting ember-data#1.0.0-beta.11 when prompted: http://showterm.io/71f2d3379b521a71aa5fd

gpbmike commented 9 years ago

I'm cleaning up our dependencies now. Will have an update for your shortly. :)

gpbmike commented 9 years ago

Here you go: https://github.com/webhook/webhook-cms/commit/715502f4c2cd62b9521ec83b2169f155f81eeb00

You shouldn't need that tmp change by the way. It was a bug with that old version of Bower.

liamjones commented 9 years ago

Thanks Mike, much appreciated! :)