hash-bang / angular-d3-hierarchy

D3 hierarchical diagrams for AngularJS
MIT License
0 stars 0 forks source link

D3 dependency #1

Open BMPGP opened 7 years ago

BMPGP commented 7 years ago

When installing via bower, I get the following error: "validate 3.3.13 against https://github.com/mbostock-bower/d3-bower.git#~3.3.11 bower ECONFLICT Unable to find suitable version for d3"

hash-bang commented 7 years ago

I'm having difficulty reproducing this issue.

Below is the full trace from a clean Bower install:

> bower --save install angular-d3-hierarchy
bower angular-d3-hierarchy#*       not-cached https://github.com/hash-bang/angular-d3-hierarchy.git#*
bower angular-d3-hierarchy#*          resolve https://github.com/hash-bang/angular-d3-hierarchy.git#*
bower angular-d3-hierarchy#*         download https://github.com/hash-bang/angular-d3-hierarchy/archive/master.tar.gz
bower angular-d3-hierarchy#*          extract archive.tar.gz
bower angular-d3-hierarchy#*         resolved https://github.com/hash-bang/angular-d3-hierarchy.git#e4ea70fda3
bower d3.chart.layout.hierarchy#~0.3.4       not-cached https://github.com/bansaghi/d3.chart.layout.hierarchy.git#~0.3.4
bower d3.chart.layout.hierarchy#~0.3.4          resolve https://github.com/bansaghi/d3.chart.layout.hierarchy.git#~0.3.4
bower d3.chart.layout.hierarchy#~0.3.4         download https://github.com/bansaghi/d3.chart.layout.hierarchy/archive/v0.3.8.tar.gz
bower d3.chart.layout.hierarchy#~0.3.4          extract archive.tar.gz
bower d3.chart.layout.hierarchy#~0.3.4         resolved https://github.com/bansaghi/d3.chart.layout.hierarchy.git#0.3.8
bower d3.chart#0.2.1                         not-cached https://github.com/misoproject/d3.chart.git#0.2.1
bower d3.chart#0.2.1                            resolve https://github.com/misoproject/d3.chart.git#0.2.1
bower d3#~3.5.6                                  cached https://github.com/mbostock-bower/d3-bower.git#3.5.16
bower d3#~3.5.6                                validate 3.5.16 against https://github.com/mbostock-bower/d3-bower.git#~3.5.6
bower d3.chart#0.2.1                           download https://github.com/misoproject/d3.chart/archive/v0.2.1.tar.gz
bower d3#~3.5.6                                     new version for https://github.com/mbostock-bower/d3-bower.git#~3.5.6
bower d3#~3.5.6                                 resolve https://github.com/mbostock-bower/d3-bower.git#~3.5.6
bower d3#~3.5.6                                download https://github.com/mbostock-bower/d3-bower/archive/v3.5.17.tar.gz
bower d3.chart#0.2.1                            extract archive.tar.gz
bower d3.chart#0.2.1                           resolved https://github.com/misoproject/d3.chart.git#0.2.1
bower d3#~3.3.11                             not-cached https://github.com/mbostock-bower/d3-bower.git#~3.3.11
bower d3#~3.3.11                                resolve https://github.com/mbostock-bower/d3-bower.git#~3.3.11
bower d3#~3.3.11                               download https://github.com/mbostock-bower/d3-bower/archive/v3.3.13.tar.gz
bower d3#~3.5.6                                 extract archive.tar.gz
bower d3#~3.5.6                                resolved https://github.com/mbostock-bower/d3-bower.git#3.5.17
bower d3#~3.3.11                                extract archive.tar.gz
bower d3#~3.3.11                               resolved https://github.com/mbostock-bower/d3-bower.git#3.3.13

Unable to find a suitable version for d3, please choose one by typing one of the numbers below:
    1) d3#~3.3.11 which resolved to 3.3.13 and is required by d3.chart#0.2.1
    2) d3#~3.5.6 which resolved to 3.5.17 and is required by d3.chart.layout.hierarchy#0.3.8

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

? Answer 2
bower angular-d3-hierarchy#*                    install angular-d3-hierarchy#e4ea70fda3
bower d3.chart.layout.hierarchy#~0.3.4          install d3.chart.layout.hierarchy#0.3.8
bower d3.chart#0.2.1                            install d3.chart#0.2.1
bower d3#~3.5.6                                 install d3#3.5.17
bower                                           no-json No bower.json file to save to, use bower init to create one

angular-d3-hierarchy#e4ea70fda3 bower_components/angular-d3-hierarchy
└── d3.chart.layout.hierarchy#0.3.8

d3.chart.layout.hierarchy#0.3.8 bower_components/d3.chart.layout.hierarchy
├── d3#3.5.17
└── d3.chart#0.2.1

d3.chart#0.2.1 bower_components/d3.chart
└── d3#3.5.17

d3#3.5.17 bower_components/d3

If you have a conflict presumably the version of D3 in your bower.json file is the issue. Can you post the contents of that file here so I can look into it?

BMPGP commented 7 years ago

I just noticed that I don't get this message as you: "Unable to find a suitable version for d3, please choose one by typing one of the numbers below: 1) d3#~3.3.11 which resolved to 3.3.13 and is required by d3.chart#0.2.1 2) d3#~3.5.6 which resolved to 3.5.17 and is required by d3.chart.layout.hierarchy#0.3.8"

Maybe it's my bower version the problem.

hash-bang commented 7 years ago

I think its maybe because you have a dependencies branch in your bower.json file like this. If Bower can't resolve from the version you are requesting I assume its falling over there.

BMPGP commented 7 years ago

Thank you for the help. Here's my bower.json. bower.zip

hash-bang commented 7 years ago

Sorry about the stupidly long delay before I got back to you on this - I've been travelling and not checking my mail as much as I should have been.

Your bower.json file looks fine and actually installs without any issue from fresh. All I can think of is maybe nuke your existing bower_components directory and rebuild it again - it does seem to have no issues at all when I try that - log file here.