webRTCCopy icon indicating copy to clipboard operation
webRTCCopy copied to clipboard

Refuses to start

Open dudeisbrendan03 opened this issue 6 years ago • 2 comments

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?

dudeisbrendan03 avatar Feb 21 '18 14:02 dudeisbrendan03

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.

erbbysam avatar Feb 21 '18 20:02 erbbysam

I am on 14.04 🤔

dudeisbrendan03 avatar Feb 21 '18 20:02 dudeisbrendan03