Reputation: 6609
Taking Ember App for example. ember install ember-bootstrap-4
will add node package. But bower install tether --save
will add bower package. Both are part of the app. But why one is in bower and one is in npm?
Upvotes: 2
Views: 735
Reputation: 11
npm and bower are both packages manager in your Ember application but there are some differences in using them:
app.import('bower_components/moment/moment.js');
(view more details in Ember Addons and Dependencies)ember install <addons-name>
, ember will look up for ember addon, place your addon's info in package.json and download it in node_modules folder. Then, Ember will load it automatically for you.Upvotes: 1
Reputation: 12872
bower install
- is for including run time dependencies and you need to import it in ember-cli-build.js
to use.
npm install
- is for including development/build time dependencies.
Upvotes: 0