Can you make sure that if you are using a supported version of node.
To find out the version of node, you can run the following command:
$ node --version v4.2.1
Node older versions do not support let or EcmaScript6 all functions.
I also ran into a similar problem and updated my node to solve my problem.
To update node, you can follow these steps:
$ sudo npm cache clean -f $ sudo npm install -gn $ sudo n stable
source share