Installing

Glimmer uses Ember CLI, the battle-tested command-line interface tool (CLI) from the Ember project, to help you create and manage your applications. It provides the following features, among others:

  • Creating a new application with a conventional project layout
  • A build pipeline with testing, development, and production environments
  • TypeScript support out-of-the-box
  • Generators for components and helpers

Pre-requisites

Git

Ember CLI 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.

Node.js and npm

Ember CLI is built with JavaScript, and expects the Node.js runtime. It also requires dependencies fetched via npm. npm is packaged with Node.js, so if your computer has Node.js installed you are ready to go.

Ember requires Node.js 4 or higher and npm 2.14.2 or higher. If you're not sure whether you have Node.js or the right version, run this on your command line:

node --version
npm --version

If you get a "command not found" error or an outdated version for Node:

If you get an outdated version of npm, run npm install -g npm.

Yarn

We are going to use Yarn to manage dependencies in a Glimmer project, as it offers some advantages over npm, such as deterministic builds and the ability to work offline.

You can follow their installation instructions to get set up.

Installing

To generate new projects, we will need an experimental feature that is only available in the Beta release channel.

To install Ember CLI Beta, run the following command:

yarn global add ember-cli@2.14.0-beta.1

Alternatively, you can do:

npm install -g ember-cli@2.14.0-beta.1

To verify that it's correctly installed, run the following command:

ember -v

You should see a version number with beta.