christophenne / trello2planka

MIT License
15 stars 1 forks source link

Can't run the tool #29

Open olekhov opened 1 year ago

olekhov commented 1 year ago

Hello, I am not a javascript developer and have little experience with the toolchain.

How to run this tool? I am on Ubuntu 22.04

$ npm --version
8.5.1
$ npm run import-board -- --file=trello.json

> trello2planka@0.0.1 import-board
> node src/index.js "--file=trello.json"

file:///home/olekhov/soft/trello2planka/src/utils/config.js:6
        if (err || !config?.planka?.api || !config?.planka?.importUser || !config?.planka?.importPassword) {
                           ^

SyntaxError: Unexpected token '.'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
christophenne commented 1 year ago

Hi,

please check your node version with node -v. The tool has been developed and tested with node v18.

If you have an older version right now, you can either upgrade it - or if you want to have multiple versions of node you could use https://github.com/nvm-sh/nvm for example.

olekhov commented 1 year ago

Thank you for fast reply. Bundled system node is v12.22.9 I'll try to install v18 with nvm