Skip to content

Installation on OS X and Linux Mint

Herbert Vojčík edited this page May 22, 2015 · 12 revisions

Installing Amber on OS X (10.10 Yosemite) and Linux Mint (17.1 Rebecca) is relatively straightforward. You need to install Node.js (0.12) and Git as precursors.

Installing Node.js and Git is very simple for OS X and Windows; they provide handy installers. However, Linux Mint needs a bit of special treatment.

---- Linux-Mint-specific section begin ----

First, you have to install curl:

sudo apt-get install curl

Then, following the instructions here:

curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs

You get Node 0.12.3.

Installing Git is as you would expect:

sudo apt-get install git

---- Linux-Mint-specific section end ----

---- OSX-specific section begin ----

If you have Xcode installed, then you already have Git (likely an older version). To use the latest version after you've installed it, you need to adjust your path to include /usr/local/git/bin before the location of Xcode's Git.

---- OSX-specific section end ----

Now to install Amber...

npm config set prefix=~/npm
export PATH="$PATH:$HOME/npm/bin" # add this to your .bashrc in Linux

npm install -g amber-cli bower grunt-cli

And voilà, you may proceed to create your first Amber project:

mkdir myProject
cd myProject
amber init

Start your application:

amber serve

And visit http://localhost:4000 in your browser.

Clone this wiki locally