DEV Community

Shajahan A
Shajahan A

Posted on

How to setup emberjs in ubuntu? | Ember 101

This post covers a simple apporach on how to setup emberjs in unbutu.

This guide assumes that you are using Ubuntu 18.04. Note: Throughout this post, we are gonna install either LTS or latest version of the packages.

Step 1: Install Nodejs

First refresh your local pacakge index

sudo apt update

Then copy-paste the following line to install LTS version of nodejs which is 12.14.1 at the time of writing.

curl -sL | sudo -E bash -
sudo apt install -y nodejs

Step 2: Install NPM

Now type the following line in your terminal to install the npm

sudo apt install npm

NPM helps you with installing and managing nodejs modules.
Now time to check both nodejs and npm are installed successfully or not by typing the following line in your terminal.

node -v
npm -v

Step 3: Install Emberjs

we are almost there, now you can install emberjs by using this single line command.

npm install -g ember-cli

Please verify the ember installation by typing this command in your terminal

ember --version


ember-cli: 3.15.1
node: 12.14.1
os: linux x64

If you see the above output in your terminal, Congrats you are succesfully installed Emberjs in your machine.

Step 4: Create an new ember app

You can use the following command to create a new ember app.

ember new ember-hello-app

Once its done, now go into the application directory

cd ember-hello-app


ember serve

After couple of seconds you will see the output like below

Livereload server on http://localhost:7020
Serving on http://localhost:4200/

Check the app by opening the url http://localhost:4200/

Hurray!! Now emberjs app is successfully running in your machine. Please leave a comment if you have any issues.
I hope you find this post useful. If you want to see more emberjs related posts give a heart.

Top comments (0)