Skip to content
BENIBIX Learn

Version Manager

Development🛠️ Editors & ToolsDevelopment Environments

Also known as Runtime Version Manager, nvm, pyenv, Node Version Manager

A tool that keeps a few versions of a language and lets you switch.

Think of it like

It is like a shoe rack. You keep a few sizes and grab the pair that fits today.

Example

Jack's work app needs an older Node.js, and his own app needs the newest. He runs nvm use in each folder and both work.

Why it matters

Each project may need its own version. Without one, you would have to take the language off and put it back each time.

Definition

A version manager is a tool that keeps several versions of a language on one computer. It lets you switch between them, for each project or each terminal. nvm does this for Node.js and pyenv does it for Python. A small file in the project can name the version it needs. The manager then picks it for you.

Example code

console
$ nvm install --lts
$ nvm use --lts
$ node --version
Install the long-term support Node.js, switch to it, then check which one is on.
The version manager, at the top, picks which version each project gets.

Common mistake

Installing the language the normal way as well. Two copies fight over which one runs, and the wrong one often wins.

Key takeaways

  1. 1
    Many versions. Side by side on one computer.
  2. 2
    Switch per project. A file in the folder can pick the version.
  3. 3
    One per language. nvm for Node.js, pyenv for Python.

Compare

Learn it properly