The installation Guide page covers how to install Trails via console command.
Trails require Node 4+ (ie: ES6 Dependency)
Current LTS NodeJS version or Stable Branch works perfectly with Trails please check install docs at the following links:
Binaries and installers: https://nodejs.org/en/download/
Via Package Manager: https://nodejs.org/en/download/package-manager/
On Linux distributions
$ sudo npm install -g generator-trails
$ yo trails
On Windows (or Mac OS with Homebrew)
$ npm install -g generator-trails
$ yo trails