How can I run and use nvm inside a fish shell? I was previously using bash and switched to fish shell and now I'm unable to use nvm. most of the wrappers are not maintained. what other alternatives exist?
1 Answer
The nvm README mentions that it does not support fish shell.:
Note: nvm does not support Fish either (see #303). Alternatives exist, which are neither supported nor developed by us:
bass allows you to use utilities written for Bash in fish shell
fast-nvm-fish only works with version numbers (not aliases) but doesn't significantly slow your shell startup
plugin-nvm plugin for Oh My Fish, which makes nvm and its completions available in fish shell
fnm - fisherman-based version manager for fish
I'm using fnm at the moment and it seems to be working fine.
-
please note that before
fnm
(which is called nvm.fish rn) you need to installfisher
plugin manager. Commented Jun 14, 2022 at 10:10