#!/usr/bin/env node

'use strict';

var serveStdIn = require('../lib/serveStdIn.js');
var launchChromecastStreamingApp = require('../lib/sendChromecast.js');
var argv = require('yargs')
    .usage('Usage: $0 --localIP [--port]')
    .option( "localIP", {demand: true, describe: "IP address of computer", type: "string" } )
    .option( "port", { demand: false, describe: "Port for server to listen on" } )
    .argv;

var server = argv.localIP;
var port = argv.port || 1338;

launchChromecastStreamingApp({
  title: 'Pipecast',
  server: server,
  port: port
}, function startServer() {
  serveStdIn({
    listenOn: server,
    port: port
  });
});

#!/usr/bin/env node

'use strict';

var serveStdIn = require('./lib/serveStdIn.js');
var launchChromecastStreamingApp = require('./lib/sendChromecast.js');
var argv = require('yargs')
    .usage('Usage: $0 --localIP [--port]')
    .option( "localIP", {demand: true, describe: "IP address of computer", type: "string" } )
    .option( "port", { demand: false, describe: "Port for server to listen on" } )
    .argv;

var server = argv.localIP;
var port = argv.port || 1338;

/*launchChromecastStreamingApp({
  title: 'Pipecast',
  server: server,
  port: port
}, function startServer() {
  serveStdIn({
    listenOn: server,
    port: port
  });
});*/

--- 
+++ 
@@ -2,8 +2,8 @@
 
 'use strict';
 
-var serveStdIn = require('./lib/serveStdIn.js');
-var launchChromecastStreamingApp = require('./lib/sendChromecast.js');
+var serveStdIn = require('../lib/serveStdIn.js');
+var launchChromecastStreamingApp = require('../lib/sendChromecast.js');
 var argv = require('yargs')
     .usage('Usage: $0 --localIP [--port]')
     .option( "localIP", {demand: true, describe: "IP address of computer", type: "string" } )
@@ -13,7 +13,7 @@
 var server = argv.localIP;
 var port = argv.port || 1338;
 
-/*launchChromecastStreamingApp({
+launchChromecastStreamingApp({
   title: 'Pipecast',
   server: server,
   port: port
@@ -22,4 +22,4 @@
     listenOn: server,
     port: port
   });
-});*/
+});
Change require to new path. Removed comment that prevents pipecast from working :sweat:
