What's wrong with this error function apply(fn, ...args) Unexpected token...
/root/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/[email protected]@async/dist/async.js:52 function apply(fn, ...args) { ^^^
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)
at require (internal/module.js:12:17)
at Object.
@MEIGOVTECH Hey, I'm also getting the same error. Did you find any workaround?
got the same error, anything anybody?
found this https://stackoverflow.com/questions/56802207/nodejs-syntaxerror-unexpected-token
First, I think this question is about async's version. then I saw it's not same between async's version in "node_modules/bitcore-node/package.json" and in "node_modules/insight-api/package.json".
So I changed async's version in "node_modules/insight-api/package.json" to the same value with async's version in "node_modules/bitcore-node/package.json". And I execute "npm install" in "node_modules/bitcore-node". Then it works.