Ember Js Installation on Ubuntu 14.04


Hello,

I faced few issues while installing it so listing down steps below incase it helps people :

Ember.js needs node.js and phantom js so we need to install them as well.

Installing NodeJs.

Follow the commands below :
sudo apt-get update
sudo apt-get install nodejs 
This should work straight forward, if not please check your internet connection. Then,
sudo apt-get install npm
 Above command will install nodejs successfully. But due to ubuntu packet mismatch it names it nodejs. Hence you need to use nodejs everywhere instead of node. Check installed version :
 nodejs --version
If you wish to avoid writing nodejs, you can create a symlink for the executable.
sudo ln -s /usr/bin/nodejs /usr/bin/node
Emberjs still uses node command internally so its better to create the above symlink.

Installing EmberJs and PhantomJs


npm install -g ember-cli
npm install -g phantomjs
Above commands will install ember and phantomjs and you can create ember projects from command line.
 ember new my-app
This might give some error if your system doesn't have git installed, install it using :
sudo apt-get install git
Then your project will be successfully created. More details can be found here .




No comments: