# 使用 Homebrew, dnf 安装 nx

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

## 安装

```sh
sudo av install brew:nx
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nx
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install nx-libs
```

  证据: Fedora Rawhide package metadata: nx-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:nx
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nx>
- **版本:** 23.1.1
- **来源摘要:** Smart, Fast and Extensible Build System
- **主页:** <https://nx.dev>
- **上游文档:** <https://nx.dev>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/nx/-/nx-23.1.1.tgz>
- **最后更新:** 2026-08-01T03:34:37Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nx (cli)
- nx-cloud (cli)
- nx (别名)
- nx-cloud (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 23.1.1
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://nx.dev
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Nx is a monorepo build system and task runner for TypeScript, JavaScript, and increasingly polyglot workspaces. It combines local task execution, dependency graphs, caching, affected-only runs, plugins, generators, migrations, and optional Nx Cloud CI features.

### 项目历史

The nrwl/nx repository was created on 2017-08-11. Nx's own Angular guide says the tool evolved from an extension of the Angular CLI into a fully standalone CLI working with multiple frameworks, which explains both its Angular roots and its later React, Node, Java, Gradle, .NET, and general build-system reach.

Nx documentation describes the core model as intelligent caching, task orchestration, and understanding the codebase structure through project and task graphs. The README describes Nx as a monorepo solution built with Rust for performance and extensible via TypeScript.

The public changelog shows the platform continuing to expand: Nx 17 in 2023 emphasized Vue and module federation improvements; Nx 19 in 2024 centered on Project Crystal; Nx 23 on 2026-06-16 added agentic migrations, task sandboxing, .NET GA support, and more platform cleanup.

### 采用历史

Nx adoption grew from Angular monorepo tooling into a general monorepo platform. Its GitHub repository has about 29k stars in the GitHub page snapshot, and its ecosystem includes npm packages, Homebrew's `nx` formula, Nx Console integrations, plugin packages, and Nx Cloud.

Homebrew packages `nx` 23.0.1 and lists more than ten thousand installs over the 365-day analytics window shown on the formula page. npm remains the primary distribution path for most JavaScript workspaces, but the Homebrew formula is useful for people who want a global `nx` binary managed with the rest of their CLI tools.

### 使用方式

Users add Nx to a workspace, then run commands such as `nx build myapp`, `nx run-many -t build test`, `nx graph`, and `nx affected` against projects defined through `nx.json`, `project.json`, and `package.json`. The key package-nerd behavior is that Nx caches task outputs and avoids rerunning work whose inputs have not changed.

Nx is used both as a lightweight task runner on top of existing package scripts and as a full integrated monorepo framework with generators, executors, module-boundary rules, migrations, release tooling, and distributed CI.

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

Nx matters because it made monorepo mechanics installable as a developer CLI: project graph, task graph, cache keys, affected sets, and migration scripts became ordinary package-managed tools rather than custom build-team infrastructure.

It also sits in the package-management tension zone: some users install it globally with Homebrew or npm, but many teams pin Nx versions in the repo so generators, migrations, plugins, and CI behavior remain reproducible.

### 时间线

- 2017-08-11: GitHub repository created.
- 2023-10-19: Nx 17.0 listed in the official changelog.
- 2024-05-06: Nx 19.0 listed in the official changelog.
- 2026-06-16: Nx 23.0 listed in the official changelog.
- 2026-06-23: GitHub release 23.0.1 published.

### Related projects

- Angular CLI is the historical root Nx evolved beyond.
- Lerna, Turborepo, Bazel, Gradle, pnpm workspaces, npm workspaces, and Yarn workspaces solve adjacent monorepo and task orchestration problems.
- Nx Cloud adds remote caching, task distribution, CI analytics, and hosted workflow features around the open source CLI.

### 来源

- <https://api.github.com/repos/nrwl/nx>
- <https://api.github.com/repos/nrwl/nx/releases>
- <https://formulae.brew.sh/formula/nx>
- <https://github.com/nrwl/nx>
- <https://nx.dev/changelog>
- <https://nx.dev/docs/getting-started/intro>
- <https://nx.dev/docs/technologies/angular/guides/nx-and-angular>
- <https://raw.githubusercontent.com/nrwl/nx/master/README.md>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation 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: nx.json, project.json, package.json
## 源数据库详情

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

## 其他软件包管理器记录

- dnf - nx-libs - 3.5.99.27-10.fc45: normalized package name match | Fedora Rawhide package metadata: nx-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | NX X11 protocol compression libraries | https://github.com/ArcticaProject/nx-libs
- dnf - nxagent - 3.5.99.27-10.fc45: normalized package name match | Fedora Rawhide package metadata: nxagent from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | NX Agent | https://github.com/ArcticaProject/nx-libs
- dnf - nxproxy - 3.5.99.27-10.fc45: normalized package name match | Fedora Rawhide package metadata: nxproxy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | NX Proxy | https://github.com/ArcticaProject/nx-libs


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [esbuild](https://pkg.so/zh-hans/brew/esbuild/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript, typescript.
- [moon](https://pkg.so/zh-hans/brew/moon/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, monorepo, task-runner.
- [mako](https://pkg.so/zh-hans/brew/mako/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript, typescript.
- [bazel](https://pkg.so/zh-hans/brew/bazel/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, monorepo.
- [buildkit](https://pkg.so/zh-hans/brew/buildkit/) - Shares pkgdb curated category or tags: build-system, build-tools, cli, developer-tools.
- [melange](https://pkg.so/zh-hans/brew/melange/) - Shares pkgdb curated category or tags: build-system, build-tools, cli, developer-tools.
- [node-sass](https://pkg.so/zh-hans/brew/node-sass/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript.
- [rollup](https://pkg.so/zh-hans/brew/rollup/) - Shares pkgdb curated category or tags: build-tools, cli, developer-tools, javascript.
- [nx](https://pkg.so/zh-hans/npm/nx/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, monorepo, nx.
- [nx-cloud](https://pkg.so/zh-hans/npm/nx-cloud/) - Executable or command metadata overlaps with this package. Shared terms: cli, cloud, developer, developer-tools, monorepo.
- [nx](https://pkg.so/zh-hans/npm/nx/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

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