4

Is it possible to get a list of package dependencies (as produced by bower list) before installing the packages?

bower install does not complete successfulfy in my project as some package has a dependency to a non existing package version, therefore I would like to be able to quickly find that package that has this incorrect dependency instead of having to inspect bower.json of every package.

Adam Siemion
  • 15,569
  • 7
  • 58
  • 92

1 Answers1

4

You could try bower-dependency-tree. npm install -g bower-dependency-tree && bower-dependency-tree name_of_the_package_you_are_interested_in should do it.

disclosure: I am the maintainer of the project.

Stanley Shyiko
  • 561
  • 1
  • 5
  • 10
  • I would definetely give it a try. Did you find this question before creating `bower-dependency-tree` or afterwards? – Adam Siemion Jul 04 '15 at 13:25
  • 2
    @AdamSiemion We had some some serious performance issues with Bower leading to OOMs for particular packages. We wanted to take a look at the dependency tree before installing them (as we couldn't really install things because of aforementioned OOMs). I've discovered this question in attempt to find existing tool. I've found none, so I wrote a module to do what I needed it to and went back to the question to post an answer. Hopefully it could help other people to deal with this kind of problems in future. – Stanley Shyiko Jul 04 '15 at 17:47
  • Thanks Stanley for the contribution to the Open Source community. I have tried `bower-dependency-tree`, however it seems to fail, submitted an issue on github for that. – Adam Siemion Jul 06 '15 at 09:49
  • Thank you, Adam. Issue has been fixed. – Stanley Shyiko Jul 06 '15 at 19:13