Skip to content

Instantly share code, notes, and snippets.

@chrmod
Last active August 29, 2015 14:06
Show Gist options
  • Save chrmod/702fe8391e9d17dbc151 to your computer and use it in GitHub Desktop.
Save chrmod/702fe8391e9d17dbc151 to your computer and use it in GitHub Desktop.
ember-cli environment setup

Setting up ember-cli environment

This is a simple HOWTO for setting up and running simple ember-cli application. If any of step below does not work for you, please leave comment under this gist: https://gist.github.com/chrmod/702fe8391e9d17dbc151

1. nvm

Check if nvm is installed in use space:

look for ~/.nvm/nvmsh

If not installed:

curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | bash

If not in shell, add this to .bashrc or .zshrc:

[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh

2. node

Check if you have node installed by nvm:

which node

It should return something like this: /home/_username_/.nvm/v0.10.29/bin/node

If it points to system path like /usr/bin/node:

  • make sure nvm is available in your shell (look at point #1 nvm)
  • install node:
nvm install 0.10
  • select node version:
nvm use 0.10
  • make this version your default one:
nvm alias default 0.10

Then open a new shell and check which node again.

3. bower

Install bower:

npm install bower -g

4. ember-cli

Install ember-cli:

npm install ember-cli -g

5. create project

Create new project:

ember new _project_name_

6. starting server

Start development server:

cd _project_name_
ember serve

It is done, congratulations!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment