Closed kcoderhtml closed 1 year ago
Seems to be related to this line https://github.com/Nutlope/aicommits/blob/68fc8ad736e38a9497e94236800d32c9264576d7/src/cli.ts#L9
According to Stack Overflow using const pj = require('./package.json')
at https://github.com/Nutlope/aicommits/blob/68fc8ad736e38a9497e94236800d32c9264576d7/src/cli.ts#L9 pj.version
at https://github.com/Nutlope/aicommits/blob/68fc8ad736e38a9497e94236800d32c9264576d7/src/cli.ts#L21 and pj.description
at https://github.com/Nutlope/aicommits/blob/68fc8ad736e38a9497e94236800d32c9264576d7/src/cli.ts#L33 might solve the problem.
If it's a Syntax error I'm guessing it's your Node.js version.
Can you share reproduction details?
npm --version says 8.5.1
You can get the Node.js version like this: node -v
I get this error too, my node version is v12.22.9
update to v18.14.1 and its fixed. thank you
I think this can be closed but as an action item, we should specify which version of Node.js is required in the README.
Thanks for your help!
When I run the command, I get this error. I installed the program through NPM exactly as shown in the README.