DEV Community

Cover image for Setup Node and NVM with Fish Shell
Fabien Townsend
Fabien Townsend

Posted on

2

Setup Node and NVM with Fish Shell

Here is how to quickly install NVM with Fish Shell. I do assume here that you have fish shell installed and bew. If you don't have fish shell installed, you can follow my other tutorial here: TL;DR setup Fish Shell MacOS

1: Install nvm with brew

brew install nvm
Enter fullscreen mode Exit fullscreen mode

2: Install bass for Fish Shell

omf install bass
Enter fullscreen mode Exit fullscreen mode

3: Configure Fish shell

# ~/.config/fish/config.fish

...

function nvm
  bass source (brew --prefix nvm)/nvm.sh --no-use ';' nvm $argv
end

set -x NVM_DIR ~/.nvm
nvm use default --silent
Enter fullscreen mode Exit fullscreen mode

And that's it, you are good to go, you can install node now:

nvm install --lts
Enter fullscreen mode Exit fullscreen mode

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay