git clone [https://github.com/lukechilds/zsh-nvm](https://github.com/lukechilds/zsh-nvm) ~/.oh-my-zsh/custom/plugins/zsh-nvm
Make sure to place the plugin close to the top, in case other plugins rely on nvm/npm.
Add the nvm plugin to get tab completion goodies
If you want to lazy load nvm, you can add this line before loading the zsh-nvm plugin. This will speedup the loading of zsh, but nvm will be loaded when it is required, thus delaying that initial run.
The first time you launch, the plugin will initialize and install the nvm environment.
If you also installed the nvm plugin, tab will now be an ever more magical key.
The zsh-nvm plugin adds helper methods, such as nvm upgrade.
To list available nodejs versions to install.
nvm install v9