Title: running esdoc's got error
Tags: ecmascript-6;esdoc
Question: to generate document i want to use esdoc

```
  esdoc -c esdoc.json
```

esdoc.json

```{
   "source": "./src/",
   "destination": "./doc"
}
```

./src/index.js

```/**
* @type {Object}
* @property {boolean} Foo.info
*/
var Foo = {
    info: true
};

export default Foo;
```

but it shows

```\node_modules\esdoc\out\src\ESDoc.js:121
  results.push(...temp.results);
               ^^^

SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
```

what did i wrong?


Here is the accepted answer: ESDoc supports Node.js v6.0.0 or later

```sudo npm cache clean -f
sudo npm install -g n
sudo n stable
```


Here is another answer: As one of the answers indicated, upgrade your node version - Had a similar problem and I did following (note I am on Mac OS X)


    brew upgrade node
    brew upgrade npm
    sudo npm cache clean -f
    sudo npm install -g n
    nvm install 7.8.0
    npm install -g esdoc


finally If you run 


    esdoc


It should give you doc directory as expected; Hope it clarifies and helps others ...


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2017:00:01/25/17', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<ecmascript-6><esdoc>', 'Title': "running esdoc's got error", 'ViewCount': 188, 'id': 41862280, 'user_AboutMe': "<p>I'm a frontend developer who craving to learn more and loves to create new things.</p>\n", 'user_AccountId': 2439116.0, 'user_DisplayName': 'fingerpich', 'user_Reputation': 7510.0, 'user_Views': 354.0, 'user_id': 2128151.0}}