elasticdump を実行して出たエラー
/usr/local/lib/node_modules/elasticdump/bin/elasticdump:69 for (var i of jsonParsedOpts) { ^^ SyntaxError: Unexpected identifier at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3
対応のためにやったこと → n のバージョンを上げる
$ sudo /usr/local/bin/npm install -g n /usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n n@2.1.12 /usr/local/lib/node_modules/n $ sudo /usr/local/lib/node_modules/n/bin/n stable install : node-v11.2.0 mkdir : /usr/local/n/versions/node/11.2.0 fetch : https://nodejs.org/dist/v11.2.0/node-v11.2.0-linux-x64.tar.gz ######################################################################## 100.0% /usr/local/lib/node_modules/n/bin/n: line 590: node: command not found installed : $ node -v v11.2.0