WebRTC-Scalable-Broadcast icon indicating copy to clipboard operation
WebRTC-Scalable-Broadcast copied to clipboard

error in server.js at line 12

Open rubo77 opened this issue 9 years ago • 2 comments

The code doesn't work. It stops at line 12 already: https://github.com/muaz-khan/WebRTC-Scalable-Broadcast/blob/master/server.js#L12

1.

On localhost:8888 I get:

Error: ENOENT, open '/var/www//index.html'

2.

On the console I get the error:

path.exists is now called `fs.exists`.

rubo77 avatar May 26 '15 18:05 rubo77

Workaround for 1.:

I can call the site with the url

http://localhost:8888/node_modules/webrtc-scalable-broadcast/index.html

because localhost:8888 resolves in /var/www/ and I installed the tool with

cd /var/www/
npm install webrtc-scalable-broadcast

( fixed by #4 )

rubo77 avatar May 26 '15 20:05 rubo77

2.

Line 12 should be

    fs.exists(filename, function (exists) {

rubo77 avatar May 26 '15 20:05 rubo77