webRTCCopy
webRTCCopy copied to clipboard
Refuses to start
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?
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.
I am on 14.04 🤔