Skip to content Skip to sidebar Skip to footer

After Update Ember-cli 2.11.0 Version How To Npm Instead Of Bower?

When I updated ember-cli to 2.11.0 and I found EMBER NO LONGER SUPPLIED VIA bower. So I check npm instead of bower, but I don't know what to do. Such as moment.js use bower look li

Solution 1:

  1. Through ember-browserify

    npm install ember-browserify --save-devnpm install moment --save-dev

you can import it by import moment from 'npm:moment'

  1. Try ember-cli-moment-shim
  2. ember packages are not served through bower. It does not mean you can't use bower at all. You can still use bower.json and include it like you did.
  3. You can have it in vendor folder and include it ember-cli-build.js file . but for moment.js inclusion. this is not the right way.

I prefer 1 or 2 options. and 3 and 4 is not applicable in this case.

Post a Comment for "After Update Ember-cli 2.11.0 Version How To Npm Instead Of Bower?"