erbbysam / webRTCCopy

A simple file sharing application using webRTC-data.io
251 stars 45 forks source link

Refuses to start #24

Open dudeisbrendan03 opened 6 years ago

dudeisbrendan03 commented 6 years ago

node --harmony server.js or node server.js returns with: Harmony:

class WebSocket extends EventEmitter {
^^^^^
SyntaxError: Unexpected reserved word
...

Normal run:

const WebSocket = require('./lib/websocket');
^^^^^
SyntaxError: Use of const in strict mode.
...

I have tried reinstalling node and npm, updating them to the latest version.

Is there a specific version of nodejs I have to run?

erbbysam commented 6 years ago

The server likely needs to be updated to reflect any changes to nodejs in the past ~3 years.

I had this working with Ubuntu 14.04 I believe. I don't think I ever tested it with 16.04.

dudeisbrendan03 commented 6 years ago

I am on 14.04 🤔