# Addon version and bower dependencies upgrade question

**URL:** <https://discuss.emberjs.com/t/addon-version-and-bower-dependencies-upgrade-question/9631>\
**Category:** Ember CLI\
**Created:** [February 2, 2016, 1:12pm UTC](https://discuss.emberjs.com/t/addon-version-and-bower-dependencies-upgrade-question/9631 "2016-02-02T13:12:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tixn](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tixn/32/16479_2.png) [@tixn](https://discuss.emberjs.com/u/tixn)\
**Post date:** [February 2, 2016, 1:12pm UTC](https://discuss.emberjs.com/t/addon-version-and-bower-dependencies-upgrade-question/9631/1 "2016-02-02T13:12:17Z")

</div>

~~Let A be an addon in version a1, and let B be a bower dependency of that addon in version b1. The addon installs its bower package through the default blueprint like~~

~~

```auto
afterInstall: function() {
    // b1 is the version.
    return this.addBowerPackageToProject('B', 'b1');
  }

```

~~

Now let C be an application consuming A. When A is installed using

```auto
ember install A

```

The bower package is actually installed in C. Up to here, things are fine. Now A **is updated** to version a2, including B in version b2. In C,

```auto
rm -R node_modules
npm cache clean
npm install

```

will fetch A.a2.

- **Will A.a2’s default blueprint run and cause C to install B.b2 as well?**
- Is this supposed to work?

_if the blueprint is run manually, B.b2 actually gets prompted for, that is, you get to see that the project has a bower conflict now and are asked how to resolve it._

I tried it out now, it doesn’t work. If I specify a postinstall script for npm (`ember g testaddon`), it doesn’t work either (because npm tries to install the packages in a different order and ember-cli isn’t installed when the postinstall script runs).

~~What good is it to have blueprints propagate bower dependencies if one does have to check them manually anyway? Am I understanding this wrongly? Is this intended behaviour?~~

(Kept for reference and discussion; please answer to SO: [ember.js - Ember Addons and bower dependencies versioning - Stack Overflow](http://stackoverflow.com/questions/35204951/ember-addons-and-bower-dependencies-versioning))

---

<div class="post-metadata">

**Author:** ![tixn](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tixn/32/16479_2.png) [@tixn](https://discuss.emberjs.com/u/tixn)\
**Post date:** [February 4, 2016, 3:28pm UTC](https://discuss.emberjs.com/t/addon-version-and-bower-dependencies-upgrade-question/9631/2 "2016-02-04T15:28:37Z")

</div>

I have now made a post on SO with this question: [ember.js - Ember Addons and bower dependencies versioning - Stack Overflow](http://stackoverflow.com/questions/35204951/ember-addons-and-bower-dependencies-versioning)
