📝 Add nvm to README.md and meta.json for Node Version Manager support

This commit is contained in:
2026-04-18 21:04:55 +08:00
parent 5435f3d26f
commit 6979087ffc
3 changed files with 38 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
| jq | - | [CHEATSHEET.md](jq/CHEATSHEET.md) | Command-line JSON processor |
| just | - | [CHEATSHEET.md](just/CHEATSHEET.md) | 🤖 Just a command runner |
| mise | - | [CHEATSHEET.md](mise/CHEATSHEET.md) | dev tools, env vars, task runner |
| nvm | - | [CHEATSHEET.md](nvm/CHEATSHEET.md) | Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions |
| openspec | - | [CHEATSHEET.md](openspec/CHEATSHEET.md) | Spec-driven development (SDD) for AI coding assistants. |
| rg | ripgrep | [CHEATSHEET.md](rg/CHEATSHEET.md) | ripgrep recursively searches directories for a regex pattern while respecting your gitignore |
| uv | - | [CHEATSHEET.md](uv/CHEATSHEET.md) | An extremely fast Python package and project manager, written in Rust. |

View File

@@ -35,6 +35,11 @@
"repo": "https://github.com/jdx/mise",
"description": "dev tools, env vars, task runner"
},
{
"name": "nvm",
"repo": "https://github.com/nvm-sh/nvm",
"description": "Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions"
},
{
"name": "openspec",
"repo": "https://github.com/Fission-AI/OpenSpec",

32
nvm/CHEATSHEET.md Normal file
View File

@@ -0,0 +1,32 @@
# nvm
## Meta
```yaml
name: nvm
repo: https://github.com/nvm-sh/nvm
description: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
```
## Install
```shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
```
## Usage
```shell
$ nvm install 24
Now using node v24.14.0 (npm v11.9.0)
$ node -v
v24.14.0
$ nvm use 22
Now using node v22.22.1 (npm v10.9.4)
$ node -v
v22.22.1
$ nvm use 20
Now using node v20.20.1 (npm v10.8.2)
$ node -v
v20.20.1
```