RomanHotsiy / commitgpt

Automatically generate commit messages using ChatGPT
1.56k stars 91 forks source link

syntaxerror #44

Open alvitawa opened 1 month ago

alvitawa commented 1 month ago

I got this error after install:

(sw) ook@ook-tux:~/work/cvscooter (master)$ npx commitgpt
file:///home/ook/.npm/_npx/de3899c053a47706/node_modules/commitgpt/dist/index.js:31
    console.log("Error: " + e.message, e.cause ?? "");
                                                ^

SyntaxError: Unexpected token '?'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
    at async link (internal/modules/esm/module_job.js:42:21)

Not familiar with npx or how to debug.