This document will address common problems related to Node.js usage.

NVM

The official installation instructions assume Node is installed globally. For those of you using NVM this will not be the case. As indicated here NVM does not install globally by design.

Linux

Install t2-cli module as normal. To install the drivers, perform the following:

Find where the node executable is located:

$ which node
/home/username/.nvm/versions/node/v4.5.0/bin/node

In the example above, the path is /home/username/.nvm/versions/node/v4.5.0/bin (referred to as $nodePath below).

Install the drivers.

$ sudo PATH="$PATH:$nodePath" $nodePath/t2 install-drivers