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?
node --harmony server.js or node server.js returns with:
Harmony:
Normal run:
I have tried reinstalling node and npm, updating them to the latest version.
Is there a specific version of nodejs I have to run?