The npm package contains two command-line tools:
(the command-line compiler).
amber tool includes a server to run on localhost
and makes it easier to save packages to be committed on disk. It is a
very convenient way to get started.
npm is a package manager for nodejs, a
npm can either be
downloaded from the website, or
installed using Operating System specific package managers.
The easiest way to install
nodejs on MacOS X and Windows is to
download the installer from the
For MacOS X users, nodejs can also be installed with homebrew:
When installed via homebrew, npm may have problems updating,
npm -gf update instead of traditional
npm -g update
solves the issue.
See node.js instructions for installing node and npm using respective package managers.
Once nodejs and npm are installed, evaluate:
The following section explains how to manually setup Amber using Bower. The
amber init command provided by the npm package automates it. Unless you want to (a) understand how it works or (b) setup Amber differently, you can refer to the getting started page.
Bower is a package manager for the web. It makes it easy to manage dependencies in your application including Amber. Unlike npm, Bower components are meant to be used inside the web browser.
If not already present, Bower is installed using npm:
npm install -g bower
In the root directory of the project, Amber bower component can be installed either by
or by adding a
bower.json file like the following:
In both cases, Amber will be installed in a directory named
We will see in the next section how to setup a project using bower.