Crates.io | mise |
lib.rs | mise |
version | |
source | src |
created_at | 2024-01-02 22:31:28.956882 |
updated_at | 2024-12-12 22:49:39.311464 |
description | The front-end to your dev env |
homepage | https://mise.jdx.dev |
repository | https://github.com/jdx/mise |
max_upload_size | |
id | 1086728 |
Cargo.toml error: | TOML parse error at line 33, column 1 | 33 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
The following shows using mise to install different versions
of node.
Note that calling which node
gives us a real path to node, not a shim.
Install mise (other methods here):
$ curl https://mise.run | sh
$ ~/.local/bin/mise --version
2024.12.8 macos-arm64 (a1b2d3e 2024-12-12)
or install a specific a version:
$ curl https://mise.run | MISE_VERSION=v2024.5.16 sh
$ ~/.local/bin/mise --version
2024.5.16 macos-arm64 (8838098 2024-05-14)
Hook mise into your shell (pick the right one for your shell):
# note this assumes mise is located at ~/.local/bin/mise
# which is what https://mise.run does by default
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
echo '~/.local/bin/mise activate fish | source' >> ~/.config/fish/config.fish
Install a runtime and set it as the global default:
$ mise use --global node@20
$ node -v
v20.0.0
See mise.jdx.dev