# ni を Homebrew, Nix, apt でインストール

ni のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ni
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ni
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ni
```

  証拠: nixpkgs package indexes: pkgs/by-name/ni/ni/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install nd
```

  証拠: Debian stable package indexes: nd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:ni
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ni>
- **バージョン:** 30.3.0
- **ソース概要:** Selects the right Node package manager based on lockfiles
- **ホームページ:** <https://github.com/antfu-collective/ni>
- **リポジトリ:** <https://github.com/antfu-collective/ni>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://registry.npmjs.org/@antfu/ni/-/ni-30.3.0.tgz>
- **最終更新:** 2026-07-23T06:02:53Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- na (cli)
- nci (cli)
- nd (cli)
- ni (cli)
- nlx (cli)
- nr (cli)
- nun (cli)
- nup (cli)
- na (エイリアス)
- nci (エイリアス)
- nd (エイリアス)
- ni (エイリアス)
- nlx (エイリアス)
- nr (エイリアス)
- nun (エイリアス)
- nup (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 30.3.0
- マネージャ更新日: 2026-07-23
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/antfu-collective/ni
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

`ni` is Anthony Fu's JavaScript package-manager dispatcher: one set of short commands that detects whether a project uses npm, Yarn, pnpm, Bun, or Deno and runs the matching package-manager command.

### プロジェクトの歴史

The npm registry metadata for `@antfu/ni` shows the package created on November 5, 2020. The project later moved under the `antfu-collective` GitHub organization while keeping the author ecosystem around Anthony Fu's JavaScript tooling.

The README documents the core idea as lockfile and package metadata detection. It maps `ni`, `nr`, `nlx`, `nup`, `nun`, `nci`, `nd`, and `na` onto equivalent npm, Yarn, pnpm, Bun, and Deno operations, and uses the separate `package-manager-detector` package for detection.

### 採用の歴史

The tool became a small package-nerd convenience in the Node ecosystem because frontend and monorepo developers often switch between repositories with different lockfiles. Homebrew analytics on July 1, 2026 reported 1,661 install-on-request events over 365 days, and the npm package was modified as version 30.2.0 on June 25, 2026.

The ecosystem signal is not that `ni` owns dependency installation, but that it standardizes muscle memory. Its README includes Homebrew and asdf installation paths, auto-install support for missing package managers, and configuration through `~/.nirc` or environment variables.

### 使われ方

Practical usage is intentionally tiny: run `ni` to install dependencies, `nr` to run scripts, `nlx` to download and execute a package, `nup` to upgrade, `nun` to uninstall, `nci` for clean/frozen installs, and `na` to invoke the detected package manager itself. The tool detects `yarn.lock`, `pnpm-lock.yaml`, `package-lock.json`, `bun.lock`, `bun.lockb`, `deno.json`, `deno.jsonc`, or the `packageManager` field.

### タイムライン

- {'date': '2020-11-05', 'event': '`@antfu/ni` npm package created.'}
- {'date': '2026-06-25', 'event': 'npm metadata listed version 30.2.0 as the latest package version.'}

### Related projects

- npm
- Yarn
- pnpm
- Bun
- Deno
- package-manager-detector

### ソース

- <https://formulae.brew.sh/api/formula/ni.json>
- <https://github.com/antfu-collective/ni>
- <https://github.com/antfu-collective/package-manager-detector>
- <https://registry.npmjs.org/@antfu%2Fni>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ni
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Nix - ni: normalized package name match | nixpkgs package indexes: pkgs/by-name/ni/ni/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Debian apt - nd - 0.8.2-8.1: installed executable or alias match | Debian stable package indexes: nd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small command line interface to WebDAV servers | http://gohome.org/nd/
- Ubuntu apt - nd - 0.8.2-8.1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: nd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | small command line interface to WebDAV servers | http://gohome.org/nd/


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/ja/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://pkg.so/ja/brew/node/) - Runtime dependency declared by Homebrew.
- [corepack](https://pkg.so/ja/brew/corepack/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [pnpm](https://pkg.so/ja/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, package-management, package-manager.
- [npm-check-updates](https://pkg.so/ja/brew/npm-check-updates/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [nrm](https://pkg.so/ja/brew/nrm/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [patch-package](https://pkg.so/ja/brew/patch-package/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [orogene](https://pkg.so/ja/brew/orogene/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, package-management, package-manager.
- [mint](https://pkg.so/ja/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://pkg.so/ja/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, package-manager.
- [install-peerdeps](https://pkg.so/ja/brew/install-peerdeps/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, management, node.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
