Question: I'm getting an error when I try to run my node.I have installed ws and websocket, but seems that none is working

[![Image of error](https://i.stack.imgur.com/OGh6S.png)](https://i.stack.imgur.com/OGh6S.png)

Answer: 
Most likely what is happening is that you are executing your script with an older version of node (more specifically V8) that had restrictions on how/where some ES6 features could be used. Upgrading node (*at least* to v4.0.0) should fix the problem.
Simply replace 'const' by 'var'. Strict mode forces you to declare your variables explicitely.