# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, scoop, winget 安装 fnm

查看 fnm 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:fnm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fnm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fnm
```

  证据: MacPorts ports tree: devel/fnm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fnm
```

  证据: Alpine Linux edge package indexes: fnm from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#fnm
```

  证据: nixpkgs package indexes: pkgs/by-name/fn/fnm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S fnm
```

  证据: Arch Linux sync databases: fnm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fnm
```

  证据: openSUSE Tumbleweed package metadata: fnm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install fnm
```

  证据: Chocolatey community package catalog: fnm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','firacode'

- Scoop (92%):

```sh
scoop install main/fnm
```

  证据: Scoop official bucket manifest trees: bucket/fnm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Schniz.fnm -e
```

  证据: Windows Package Manager source index: Schniz.fnm from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:fnm
- **软件包管理器:** Homebrew
- **版本:** 1.39.0
- **来源摘要:** Fast and simple Node.js version manager
- **主页:** <https://github.com/Schniz/fnm>
- **仓库:** <https://github.com/Schniz/fnm>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fnm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.39.0
## 项目历史与用法

fnm, short for Fast Node Manager, is a cross-platform Node.js version manager built in Rust. Its official README emphasizes speed, single-file installation, instant startup, and compatibility with `.node-version` and `.nvmrc` project files.

### 项目历史

The project occupies the same problem space as earlier Node version managers but frames its design around a small Rust binary and fast shell startup. Official documentation is split between the repository README and a dedicated `docs` directory covering commands and configuration.

### 采用历史

fnm has broad package-manager coverage. The supplied package metadata lists Homebrew, Alpine, Chocolatey, MacPorts, Nix, Arch, Scoop, WinGet, and openSUSE packaging, while the official README documents installation through Homebrew, WinGet, Scoop, Chocolatey, Cargo, release binaries, and an install script.

### 使用方式

Typical fnm usage starts with installing the binary, evaluating `fnm env` in the user's shell, and letting fnm select Node versions from project files. The README documents shell setup for Bash, Zsh, Fish, PowerShell, and Windows Command Prompt, plus completions for common shells.

### 为什么软件包爱好者会关心

fnm is significant to package-manager users because it is both a language runtime manager and a packaged CLI with native support across Unix and Windows package ecosystems. Its Rust implementation and project-file compatibility make it a common alternative to shell-heavy Node version managers.

### 时间线

- Current: Official README describes fnm as a fast and simple Node.js version manager built in Rust.
- Current: Official README documents Homebrew, WinGet, Scoop, Chocolatey, Cargo, release-binary, and install-script installation paths.
- Current: Supplied package metadata lists fnm across Homebrew, Alpine, Chocolatey, MacPorts, Nix, Arch, Scoop, WinGet, and openSUSE.

### Related projects

- fnm is related to Node.js and project version files such as `.node-version` and `.nvmrc`. It is also related to package-manager distribution channels including Homebrew, WinGet, Scoop, Chocolatey, Cargo, Nix, Arch, Alpine, MacPorts, and openSUSE.

### 来源

- <https://formulae.brew.sh/api/formula.json>
- <https://formulae.brew.sh/formula/fnm>
- <https://github.com/Schniz/fnm>
- <https://github.com/Schniz/fnm#readme>
- <https://github.com/Schniz/fnm/tree/master/docs>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./.node-version, ./.nvmrc, ./package.json
## 其他软件包管理器记录

- Nix - fnm: normalized package name match | nixpkgs package indexes: pkgs/by-name/fn/fnm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - fnm - 1.39.0-r0: normalized package name match | Alpine Linux edge package indexes: fnm from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fast and simple Node.js version manager, built in Rust | https://github.com/Schniz/fnm
- apk - fnm-bash-completion - 1.39.0-r0: normalized package name match | Alpine Linux edge package indexes: fnm-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for fnm | https://github.com/Schniz/fnm
- apk - fnm-fish-completion - 1.39.0-r0: normalized package name match | Alpine Linux edge package indexes: fnm-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for fnm | https://github.com/Schniz/fnm
- apk - fnm-zsh-completion - 1.39.0-r0: normalized package name match | Alpine Linux edge package indexes: fnm-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for fnm | https://github.com/Schniz/fnm
- pacman - fnm - 1.39.0-1: normalized package name match | Arch Linux sync databases: fnm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast and simple Node.js version manager, built with Rust | https://github.com/Schniz/fnm
- zypper - fnm - 1.38.1-1.7: normalized package name match | openSUSE Tumbleweed package metadata: fnm from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fast and simple Node.js version manager in Rust | https://github.com/Schniz/fnm
- zypper - fnm-bash-completion - 1.38.1-1.7: normalized package name match | openSUSE Tumbleweed package metadata: fnm-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for fnm | https://github.com/Schniz/fnm
- zypper - fnm-fish-completion - 1.38.1-1.7: normalized package name match | openSUSE Tumbleweed package metadata: fnm-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for fnm | https://github.com/Schniz/fnm
- zypper - fnm-zsh-completion - 1.38.1-1.7: normalized package name match | openSUSE Tumbleweed package metadata: fnm-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for fnm | https://github.com/Schniz/fnm
- MacPorts - fnm: normalized package name match | MacPorts ports tree: devel/fnm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - fnm: normalized package name match | Chocolatey community package catalog: fnm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','firacode'
- Scoop - main/fnm: normalized package name match | Scoop official bucket manifest trees: bucket/fnm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Schniz.fnm: normalized package name match | Windows Package Manager source index: Schniz.fnm from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/fnm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fnm.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
