SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) in elasticdump

I was trying to move elasticsearch data from one server to another using elasticdump. When I giving elasticdump --input=http://192.168.0.122:9200/my_index --output=http://localhost:9200/my_index --type=mapping /usr/local/lib/node_modules/elasticdump/lib/transports/elasticsearch.js:668 var { awsChain, awsAccessKeyId, awsIniFileProfile } = self.parent.options…

Continue ReadingSyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) in elasticdump