fnm
fnm copied to clipboard
How to use Node.js managed by fnm outside the terminal
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=....
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.
Potential workaround/solution https://github.com/Schniz/fnm/issues/668#issuecomment-2233615946