Installing elasticdump
throws a bunch of warnings like so
$ npm install -g elasticdump
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated s3signed@0.1.0: This module is no longer maintained. It is provided as is.
/Users/ebeisaac/.npm-packages/bin/elasticdump -> /Users/ebeisaac/.npm-packages/lib/node_modules/elasticdump/bin/elasticdump
/Users/ebeisaac/.npm-packages/bin/multielasticdump -> /Users/ebeisaac/.npm-packages/lib/node_modules/elasticdump/bin/multielasticdump
npm WARN notsup Unsupported engine for elasticdump@6.56.0: wanted: {"node":">=10.0.0"} (current: {"node":"6.13.1","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: elasticdump@6.56.0
npm WARN notsup Unsupported engine for fast-csv@4.3.5: wanted: {"node":">=10.0.0"} (current: {"node":"6.13.1","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: fast-csv@4.3.5
npm WARN notsup Unsupported engine for p-queue@6.6.2: wanted: {"node":">=8"} (current: {"node":"6.13.1","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: p-queue@6.6.2
npm WARN notsup Unsupported engine for p-timeout@3.2.0: wanted: {"node":">=8"} (current: {"node":"6.13.1","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm: p-timeout@3.2.0
+ elasticdump@6.56.0
updated 1 package in 15.284s
After which, the executable always throws the following error when it is called
$ elasticdump --version
/Users/ebeisaac/.npm-packages/lib/node_modules/elasticdump/lib/processor.js:40
async _loop (limit, offset, totalWrites) {
^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/ebeisaac/.npm-packages/lib/node_modules/elasticdump/elasticdump.js:3:28)
I even tried installing npm
exactly as how it is done in this website. The outcome is still the same.
How to resolve this issue and get elasticdump
to work?