di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
6.15k stars 328 forks source link

Error in VSCode hook on Linux #77

Closed liluxdev closed 1 year ago

liluxdev commented 1 year ago

image

git -c user.useConfigOnly=true commit --quiet /usr/bin/env: ‘node’: No such file or directory

kvndrsslr commented 1 year ago

well, do you have node in your login shell's PATH?

liluxdev commented 1 year ago

Sure

echo $PATH
/home/stefano/.nvm/versions/node/v19.7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/stefano/jpm/bin:/home/stefano/jpm/bin

Anyway the issue seems to be fixed now that I updated the opencommit from npm