# Node Version Manager

![status-draft](https://img.shields.io/badge/status-draft-darkred.svg)

Sometimes you need to have several different versions of Node installed on your computer because different projects need different versions. If you need to be able to do this, or if you just want an easier way to install Node, use Node Version Manager (nvm).

## Installation

1. Go to the GitHub homepage: <https://github.com/nvm-sh/nvm>
2. Follow the installation instructions: <https://github.com/nvm-sh/nvm#install-script>.

   The easiest way is just to copy the command beginning with `curl`

   and paste it into your command line

**Important Note** ⚠

Using `curl` and `bash` (like you just did) can be unsafe if you do not trust where the command is coming from. Always be careful when copy/pasting commands from the internet!

### Installing a specific version of Node

Run `nvm install YOUR_NODE_VERSION` to install a version of Node. Once it's installed nvm will switch to using the version you installed. You can check by running `node -v`.

### Finding out which versions of Node you have installed

Run `nvm ls`. You will see a list of all the versions of Node you have installed with nvm. The arrow points the version that you are currently using.

### Switching to a version of Node you have installed

If you know a version of Node is already installed on your computer, you can switch to it by running `nvm use YOUR_NODE_VERSION`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codeyourfuture.io/archive/archived-pages/guides/node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
