$ sudo npm install cylon cylon-ble -g
$ npm install sphero noble
$ cylon-ble-scan
You should get an output like this:
Starting scan.
Peripheral discovered!
Name: BB-CC91
UUID: efbec196e7124feb85e2dbb272fb0652
rssi: -34
var sphero = require("sphero"),
bb8 = sphero("Your-BB-8-UUID");
$ node app.js
For more about sphero.js visit https://github.com/orbotix/sphero.js