Schniz / fnm

🚀 Fast and simple Node.js version manager, built in Rust
https://fnm.vercel.app
GNU General Public License v3.0
18.27k stars 468 forks source link

VSCode and webstorm pre-commit: pnpm not found,it gives an error #954

Open AdeCaspeer opened 1 year ago

AdeCaspeer commented 1 year ago

I use fnm on win ,when i commit my code with pre-commit ,it

.husky/pre-commit: line 4: pnpm: command not found
husky - pre-commit hook exited with code 127 (error)
husky - command not found in PATH=C:\Users\adekang\AppData\Local\fnm_multishells\360_1683120687240:/mingw64/libexec/git-core:/mingw64/bin:/usr/bin:/c/Users/adekang/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/WINDOWS/System32/OpenSSH:/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/f/Software/anaconda3/Scripts:/f/Software/anaconda3/Library/bin:/f/Software/anaconda3/Library/mingw-w64/bin:/f/Software/anaconda3:/c/Users/adekang/AppData/Local/Microsoft/WindowsApps:/f/Software/WebStorm 2023.1/bin:/f/Software/PyCharm 2023.1/bin:/f/Software/Microsoft VS Code/bin:/f/Software/fnm-arm64:/d/tools/chromedriver_win32
nemchik commented 4 months ago

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