Installation

Getting trainjs installed and ready-to-go should only take a few minutes. If it ever becomes a pain in the ass, please file an issue (or submit a pull request) describing the issue you encountered and how we might make the process easier.

Requirements

Installing trainjs is easy and straight-forward, but there are a few requirements you’ll need to make sure your system has before you start.

Running trainjs on Linux

trainjs can run on multiple platforms, but the official tutorial only support installation on Linux platforms.

Install Node.js

At the terminal prompt, simply run the following commands to install Node.js:

~ $ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
~ $ sudo apt-get install -y nodejs

You can read this guide to install Node.js on other platforms.

Install trainjs

You can do this more easily by using npm:

~ $ sudo npm install -g trainjs