fnm icon indicating copy to clipboard operation
fnm copied to clipboard

How to use Node.js managed by fnm outside the terminal

Open PinkChampagne17 opened this issue 1 year ago • 2 comments

For example, I use a Git GUI to commit, the Git hooks I used are written by Node.js, and then an error occurs:

env: node: No such file or directory
husky - commit-msg hook exited with code 127 (error)
husky - command not found in PATH=....

PinkChampagne17 avatar Sep 15 '23 10:09 PinkChampagne17

I suppose you would have to add the location of the node installation to the PATH. But I think that might break fnm version management.

lombervid avatar Sep 16 '23 07:09 lombervid

Potential workaround/solution https://github.com/Schniz/fnm/issues/668#issuecomment-2233615946

nemchik avatar Jul 17 '24 15:07 nemchik