Lesson 2

Installing Ember CLI


⚠️ This tutorial uses an old version of Ember. Some things might have changed!

If you've already installed everything you need to get started with Ember CLI, feel free to skip to the next chapter.

There are 6 main things you need to have installed on your computer in order to make Ember apps:

  1. Node (or Node.js) is used to run a virtual server on your computer, and is also required for NPM packages.

  2. NPM stands for Node Package Manager and allows you to tap into thousands of libraries written in Node and install them with a simple command.

  3. Bower is a package manager very similar to NPM, but built specifically for front-end development. Lately, Bower has slowly started getting phased out in favour of NPM packages only, but many addons still require it.

  4. PhantomJS is a headless browser used to run automated tests on Ember apps.

  5. Watchman listens to changes in your project and automatically rebuilds the preview when needed (note that this is for macOS only).

  6. And most importantly, Ember CLI – the command-line program that helps you generate files with boilerplate code and run the Ember server.

Installing Node and NPM

To install Node, head over to the Node website and click on the "Install" button to start the download. After that, simply launch the package installer and just follow the instructions.

The Node installer

NPM comes bundled together with Node. To make sure you have both of them installed, open up your terminal application (located in Applications > Utilities > Terminal if you're using a Mac) and run these commands:

Here are my versions for this tutorial. Don't worry if your version numbers aren't exactly the same.

Installing the rest

Now that we have Node and NPM, installing the rest is easy! Again, just use the terminal:

Installing Watchman 3

One final thing if you're using OSX, is that you should install Watchman since it's more efficient than NodeWatcher when it comes to looking for changes in your project files.

Alright, that was the boring part, but now we're all done! In the next chapter we'll start creating our project!


Christian Abdelmassih

Had to run "sudo npm install -g ember-cli" instead, otherwise I received errors

Lovely Rohit Wadhwa

Thanks Christian. Your comment saved my time :)

Tristan Edwards

@chrisr: That sounds correct. Ember 1.13 is really 2.0 in disguise. If you want, you can also install Ember CLI 2.2.0-beta.1 as seen on http://ember-cli.com (yeah, the versioning is a bit confusing since they skip some version numbers with the CLI). You should be able to follow the course either way!


What version of Ember should be installed? ember -v gives me

version: 1.13.13

node: 5.3.0

npm: 2.14.10

os: darwin x64

Andrés BG

How is posible? The latest version of npm is: 2.13.5

Tristan Edwards

@andrsbg: Yes, 2.13.5 is higher than 2.7.0 :)