<commit_before># Bootstrapping on Mac OS
Here's how to get the steward running on Mac OS X 10.8 (Mountain Lion).

First, make sure that _/usr/local/bin_ is before _/usr/bin_ in your $PATH.

Second, make sure you have _Xcode_ installed on your system,
and after starting _Xcode_ go to the "Preferences/Downloads" window and install the _Command Line Tools_.

Second, get [homebrew](http://mxcl.github.io/homebrew/) on the system:

    $ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
    $ brew doctor

If homebrew suggests anything, e.g.,

    brew install git
    brew upgrade git

    ...and so on...

please do so. Keep doing this until you get

    brew doctor
    Your system is ready to brew.

Then install the USB compatibility library

    brew install libusb-compat

Then, put the [node version manager (nvm)](https://github.com/creationix/nvm) on the system:

    git clone git://github.com/creationix/nvm.git ~/.nvm
    echo ". ~/.nvm/nvm.sh" >> ~/.bashrc  
    . ~/.nvm/nvm.sh

Then install the v0.10.12 release of [_node.js_](http://nodejs.org) on the system:

    nvm install v0.10.12
    nvm alias default v0.10.12

(This isn't the most current version, but all the dependencies work with it...)

Then go to the _steward_ directory and install the libraries:

    cd steward/steward
    npm install -l

### Alternative method to install Node.js

_The nvm system is based around the bash shell. If you run tcsh or another alternative, it's not going to work for you. You'll have to install node by hand. Go ahead and checkout Node.js from the Github repository,_<commit_msg>small doc touch-up<commit_after># Bootstrapping on Mac OS
Here's how to get the steward running on Mac OS X 10.8 (Mountain Lion).

First, make sure that _/usr/local/bin_ is before _/usr/bin_ in your $PATH.

Second, make sure you have _Xcode_ installed on your system,
and after starting _Xcode_ go to the "Preferences/Downloads" window and install the _Command Line Tools_.

Second, get [homebrew](http://mxcl.github.io/homebrew/) on the system:

    $ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
    $ brew doctor

If homebrew suggests anything, e.g.,

    brew install git
    brew upgrade git

    ...and so on...

please do so. Keep doing this until you get

    brew doctor
    Your system is ready to brew.

Then install the USB compatibility library

    brew install libusb-compat

Then, put the [node version manager (nvm)](https://github.com/creationix/nvm) on the system:

    git clone git://github.com/creationix/nvm.git ~/.nvm
    echo ". ~/.nvm/nvm.sh" >> ~/.bashrc  
    . ~/.nvm/nvm.sh

Then install the v0.10.12 release of [_node.js_](http://nodejs.org) on the system:

    nvm install v0.10.12
    nvm alias default v0.10.12

(This isn't the most current version, but all the dependencies work with it...)

Then go to the _steward_ directory and install the libraries:

    cd steward/steward
    npm install -l

Note that the top-level directory may be called _steward-master_, in that case you want to:

    cd steward-master/steward
    npm install -l

instead.

### Alternative method to install Node.js

_The nvm system is based around the bash shell. If you run tcsh or another alternative, it's not going to work for you. You'll have to install node by hand. Go ahead and checkout Node.js from the Github repository,_
{'fraction_non_alphanumeric': 0.08996437054631828, 'fraction_numerical': 0.010688836104513063, 'mean_word_length': 3.1695544554455446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2236381', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1020, 'n_words': 452}