# node

* [Versions](#versions)
* [Install](#install)
* [Node Package Manager](#node-package-manager)
  * [fnm](#fnm)
  * [volta](#volta)
  * [nvm](#nvm)
* [Frameworks](#frameworks)

## Versions

![](https://raw.githubusercontent.com/nodejs/Release/master/schedule.svg)

| byGrok               | npm v9 (\~2022–2023) | npm v10 (\~2023–2025) | npm v11 (\~2025–2026)      |
| -------------------- | -------------------- | --------------------- | -------------------------- |
| Bundled with Node    | 18 / 19              | 20 / 22               | 22+ / 24+                  |
| Minimum Node engines | ≥14.17               | ≥18.17 \|\| ≥20.5     | ≥18 / ≥20 / ≥22 (stricter) |

## Install

```
curl -qL https://www.npmjs.com/install.sh | sh
```

## Node Package Manager

| byGrok 2026 | Language | Cross-platform             | Auto-switch (.nvmrc/.node-version) | Speed / Shell startup | Per-project tools (npm/yarn/pnpm) | Best for                       | Popularity (approx.)  |
| ----------- | -------- | -------------------------- | ---------------------------------- | --------------------- | --------------------------------- | ------------------------------ | --------------------- |
| **nvm**     | Bash     | Yes (nvm-windows separate) | Yes                                | Slow (2-3s delay)     | No                                | Beginners, traditional users   | Highest (\~75k stars) |
| **fnm**     | Rust     | Yes                        | Yes (fastest)                      | Very fast (\~instant) | No                                | Speed + simplicity             | High                  |
| **Volta**   | Rust     | Yes                        | Yes (via package.json)             | Very fast             | Yes (pins npm/yarn/pnpm too)      | Teams, consistent tooling      | High                  |
| **asdf**    | Shell    | Yes                        | Yes                                | Medium                | No (plugins for others)           | Polyglot devs (multiple langs) | Medium-High           |
| **n**       | Bash     | macOS/Linux mainly         | No                                 | Fast                  | No                                | Minimalist, no shell mods      | Medium                |
| **nvs**     | JS       | Yes                        | Yes                                | Medium                | No                                | Windows focus, cross-platform  | Lower                 |

* Speed + easy → **fnm**
* Full JS toolchain pinning → **Volta**
* Multi-language → **asdf**
* Classic → **nvm**

### fnm

```
curl -fsSL https://fnm.vercel.app/install | bash
fnm install --lts

fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression # Windows
eval "$(fnm env --use-on-cd --shell bash)"                              # Linux

fnm list
fnm use 24.14.0
```

### volta

<https://volta.sh/>

```
curl https://get.volta.sh | bash
volta list
volta install node@18
```

### nvm

<https://github.com/nvm-sh/nvm>

## Frameworks

```
cd project
npm install -g vinext  --verbose
'DEBUG="true"' | Out-File -FilePath .dev.vars -Encoding utf8
vinext dev          # Hot Module Replacement, :3000
vinext build        # Production build
vinext deploy       # Build and deploy to Cloudflare Workers
```


---

# 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://book.ferro.pro/dev/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.
