Getting started with Ember.js is easy. Ember.js projects are created and managed through our command line build tool Ember CLI. This tool provides:
- Modern application asset management (including concatenation, minifying, and versioning)
- Generators to help you create components, routes, and more
- A conventional project layout, so approaching existing Ember.js applications is easy
- A complete QUnit test harness
- The ability to consume a growing ecosystem of Ember Addons
Node.js and npm
Ember requires Node.js 0.12 or higher and npm 2.7 or higher. If you're not sure whether you have Node.js, run this on your command line:
The output should give a version number. If it gives a "command not found" error instead:
- Windows or Mac users can download and run this Node.js installer.
- Mac users often prefer to install Node using Homebrew. After
installing Homebrew, run
brew install nodeto install Node.js.
- Linux users can use this guide for Node.js installation on Linux.
Once you've got Node.js installed, re-run
node --version to verify your
Ember requires Git to manage many of its dependencies. Git comes with Mac OS X and most Linux distributions. Windows users can download and run this Git installer.
On Mac and Linux, you can improve file watching performance by installing Watchman.
Install Ember using npm:
npm install -g ember-cli
While you're at it we recommend you also install PhantomJS to run tests from the command line (without the need for a browser to be open):
npm install -g phantomjs2
To verify that your installation was successful, run:
If the result is something like
version: 1.13.0, you're ready to go.