mise nutzen: Installation, Shell-Hook, Node/Python, .mise.toml

mise und .mise.toml richten Node/Python pro Repo aus.

mise (früher rtx) pinnt Node, Python und mehr pro Verzeichnis — oft in einer committeten .mise.toml.

mise Version Manager installieren Node Python mise.toml — laut mise.jdx.dev.

mise installierenShell aktivierenRuntimes · .mise.toml

Für wen

01

Viele Repos

Auto-Wechsel beim cd.

02

Teams

mise install nach Clone.

Installation

  1. 1

    Offiziell

    curl https://mise.run | sh, dann mise --version.

  2. 2

    macOS

    brew install mise optional.

Shell-Hook

# zsh (~/.zshrc)
eval "$(mise activate zsh)"

# bash (~/.bashrc)
eval "$(mise activate bash)"

# fish (~/.config/fish/config.fish)
mise activate fish | source

Node / Python

  1. 1

    install

    mise install node@22 python@3.12

  2. 2

    use

    mise use node@22 python@3.12

.mise.toml

[tools]
node = "22"
python = "3.12"

[env]
PROJECT_ENV = "dev"

mise trust, mise install. wbroom Startseite — Raum erstellen.

FAQ

Mit asdf/nvm?

Nur einen Manager pro Projekt; Migrating-Doku nutzen.

Kein Wechsel bei cd?

mise activate, Trust, IDE-Terminal prüfen.

CI

mise install, mise exec --.

.tool-versions vs TOML

Beides möglich; TOML für [env].

Meeting starten