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.
Why should I use ember install over NPM or yarn?
ember install addon-name
is a short hand for npm install --save-dev addon-name && ember g addon-name
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With