-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get Husky v6 to work with fnm #428
Comments
What do you mean "from an application"? A CI step?
Another option is to |
From a desktop application. I've used SmartGit in the examples above. I'll try the I can't do the other suggestion because that would change it for the whole team and not everyone uses |
@Schniz That solved it, and it makes sense, it was stupid of me to do it without However, I had a different problem after that... You see, I'm using
This is problematic because
I simulated this on my Any chance you can make that change so that spaces in |
Hmm makes sense! What do you say about contributing it? Should be fairly easy and you will leave a mark 😃 |
Let's convince them to use it 😈😈 why won't they use fnm? Is something missing or does not work for them? |
I looked at the code, but I have not idea what to do, I don't know Rust, and unfortunately I don't have much time to dig into the source code now :(
I don't know, never had that conversation. I believe some use it, some use something else, and some probably use nothing. I've recommended it in the past, but I have no idea who started using it and who didn't 😅 |
FYI, I have temporarily solved this issue on my side by loading eval "$(fnm env --shell=zsh --log-level=quiet | sed -e 's/PATH="\(.*\)":\$PATH/PATH="\1:$PATH"/g')" |
I also did something similar as a workaround for Git Bash in #390. |
Putting |
|
same here same issue fnm command not found |
@ImBIOS @Robokishan This is not an I have this in my eval "$(fnm env)" If husky is not able to find This issue should be closed. |
Potential workaround/solution #668 (comment) Note on the info above: |
I use ZSH and here's how I set up
fnm
on~/.zshrc
:Now I'm trying to set up Git hooks with the latest Husky version, but I can't get them to work. If I commit from my shell, everything works as expected. If I commit from an application, I get this:
Then I followed Husky's instructions to fix this issue, and I have added
fnm env --shell=zsh
to~/.huskyrc
, but then I got thisNot sure how to fix this...
The text was updated successfully, but these errors were encountered: