Édouard Lopez
Édouard Lopez

Reputation: 43401

Why should I use ember install over NPM or yarn?

I'm new to ember and I discover the command ember install pkg and I'm wondering why such package instead of using external package manager such as yarn or npm which are industry-wide/de-facto standard.

Question

Why should I use ember install over NPM or yarn?

Upvotes: 6

Views: 1548

Answers (2)

Ember Freak
Ember Freak

Reputation: 12872

ember install addon-name is a short hand for npm install --save-dev addon-name && ember g addon-name

Upvotes: 8

Rick van Lieshout
Rick van Lieshout

Reputation: 2316

The documentation provides the answer for this one (ctrl + f ember install):

Installs the given addon into your project and saves it to the package.json file. If provided, the command will run the addon’s default blueprint.

The release notes for version 0.1.5 provide a clue for this as well:

#2805 Added the install:addon command, which installs an addon with NPM and then runs the included generator of the same name if it provides one.

So, ember install is just a replacement for npm in most cases but when a blueprint is provided it will run those as well.

Upvotes: 6

Related Questions