> ## Content Index
> Fetch the complete content index at: https://catalins.tech/llms.txt
> Use this file to discover other available public pages before exploring further.

# Use Node Version Manager with Oh My Zsh
- URL: https://catalins.tech/node-version-manager-oh-my-zsh/
- Published: 2024-06-24T10:05:51.000Z
- Updated: 2026-09-11T13:34:53.000Z
- Description: Learn to use multiple Node versions with NVM on macOS using oh-my-zsh. Easy installation and configuration for seamless Node version switching.
- Author: Catalin Pit
- Tags: Zsh, Terminal, Developer Tools

One way of using multiple Node versions is to install and use [Node Version Manager (NVM)](https://catalins.tech/node-version-manager-macos/). The process involves downloading NVM, installing it and configuring it manually.

But there's an alternative way of using NVM on macOS if you have `oh-my-zsh` installed.

### Install NVM on macOS with oh-my-zsh

The first step is to clone the plugin repository in the Zsh `plugins` folder.

```bash
git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm
```

After that, you need to add the plugin in the `.zshrc` file.

If you want the whole shell setup, [my .zshrc file](https://catalins.tech/zshrc-configuration-file/) is available.

```bash
plugins=(git nvm zsh-nvm)
```

Wait, but why are there 2 `nvm` plugins?

The first one, `nvm`, is the default one that comes with `oh-my-zsh`. This plugin only provides autocompletion for the Node Version Manager commands. Also, it's not mandatory to install it. Only add the plugin if you want `nvm` autocompletion.

The second one, `zsh-nvm`, is the plugin that enables you to use different Node versions.

The last step involves restarting Zsh and loading the new configuration.

```bash
source ~/.zshrc

```

After that, you can start using the `nvm` commands.

![](https://catalins.tech/content/images/2024/03/nvm.webp)

Congrats! You can now seamlessly switch between various Node versions. And before you go, check out the [top 6 Zsh plugins](https://catalins.tech/zsh-plugins/) you should use.

P.S: If you don't use `oh-my-zsh` already, you should try it! I wrote an article that helps you [improve your terminal with iTerm2 + Oh-My-Zsh](https://catalins.tech/improve-mac-terminal/).

Get my `.zshrc` configuration file and plugins for FREE