Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nrwl/nx/llms.txt
Use this file to discover all available pages before exploring further.
Global installation
Install Nx globally to run commands from anywhere. Choose a method based on your operating system and package manager.- npm
- Homebrew (macOS, Linux)
- Chocolatey (Windows)
- apt (Ubuntu)
yarn global add nx, pnpm add --global nx, or bun add --global nx.Verify installation
22.5.0.
Update global installation
- npm
- Homebrew (macOS, Linux)
- Chocolatey (Windows)
- apt (Ubuntu)
yarn global upgrade nx, pnpm update --global nx, or bun update --global nx.Install in a repository
To add Nx to an existing repository, run:nx package as a dev dependency and creates an nx.json configuration file. If you have Nx installed globally, it will defer to the local version in your repository.
You can also manually install the
nx npm package and create an nx.json configuration file by hand.Update Nx in your repository
When you update Nx in your repository, it will also automatically update your dependencies if you have an Nx plugin installed for that dependency. To update Nx, run:migrations.json file with any update scripts that need to be run. Apply them with:
System requirements
Nx is built with Rust for performance and ships precompiled native binaries for the following platforms:| Platform | Architectures |
|---|---|
| Linux (GNU) | x64, arm64, armv7 |
| Linux (musl) | x64, arm64 |
| macOS | x64, arm64 |
| Windows (MSVC) | x64, arm64 |
| FreeBSD | x64 |
