Skip to content

Refuses to start #24

@dudeisbrendan03

Description

@dudeisbrendan03

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions