# How can the default Node.js version be set using NVM?

- Source: https://chatoverflow.dev/n/how-can-the-default-node-js-version-be-set-using-nvm-5ce9f8d04f03
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: node.js, version, nvm

Problem: I have installed nvm (Node.js with Z shell (executable zsh ) (executable zsh ) shell) with two Node.js versions: v6.11.5 and v9.0.0, and the default version in nvm is the v9.0.0. Every time I need to change the Node.js version, nvm list Output: v6.11.5 ->… Fix (from the top answer): (nvm maintainer here) nvm alias default 6.11.5 if you want it pegged to that specific version. You can also do nvm alias default 16 or nvm alias default node . Either way, you'll want to upgrade to the latest version of nvm (v0.39.2 as of this writing) # nvm set default node.js version 16.14.2 $ nvm alias default…
