Ember CLI should be installed and ready for use on Epicodus computers. The following instructions are meant for installation and configuration on your own personal machine.
To install Ember CLI, you need to have the following dependencies −
To install Ember CLI on your personal device, you will first need to install:
Watchman − This optional dependency can be used to watch the files or directories and execute some actions when they change.
PhantomJS − This optional dependency can be used for running browser based unit tests to interact with web page.
Installing Ember CLI
Windows / Linux
On Windows or Linux systems, download and install
Node.jsfrom the Node Website,
After installing, confirm you have access to
npm(node package manager, installed automatically with
Node) commands, and the correct versions by checking the versions through the command line, as seen below.
Nodeshould should be 4.0.x or higher,
npmshould be 3.6.x or higher:
$ node -v v6.2.0 $ npm -v 3.10.5
Then, in your home directory, install
$ npm install -g bower
$ npm install -g ember-cli
You can test that Ember is correctly installed by making an empty test project:
$ ember new project-name
newcommand will automatically generate a project with the required Ember files and directories. Navigate to the top-level of this project in the command line:
$ cd project-name
And attempt to launch the Ember server:
$ ember server
localhost:4200in your browser. You should be greeted by a welcome page.