lonekorean/wordpress-export-to-markdown

SyntaxError: Unexpected token {

Closed this issue · 1 comments

Hello!

First of all, thanks for the tool, it would be really great to use it for our site migration. I did export the WP content as xml and followed the README instructions (I run Ubuntu), but I get this error:

/home/succurro/packages/wordpress-export-to-markdown/node_modules/webidl-conversions/lib/index.js:357
    } catch {
            ^

SyntaxError: Unexpected token {
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/succurro/packages/wordpress-export-to-markdown/node_modules/jsdom/lib/jsdom/browser/Window.js:3:27)

The nodejs and npm installations were successful, I only got 3 warnings which I do not know if they are relevant to this issue so I report them here:

$ npm install
npm WARN jsdom@16.2.2 requires a peer of canvas@^2.5.0 but none was installed.
npm WARN ws@7.2.5 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.2.5 requires a peer of utf-8-validate@^5.0.2 but none was installed.

My fault, did not check nodejs version assuming Ubuntu used the latest repository, updated to v12.x and everything works fine, closing the issue!