Nue runs on Bun, a fast JavaScript runtime and package manager. Installing Nue is a two-step process: install Bun if you don’t have it, then installDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/nuejs/nue/llms.txt
Use this file to discover all available pages before exploring further.
nuekit globally. The entire Nue ecosystem — build tool, Markdown renderer, component runtime, syntax highlighter, and state manager — arrives in under 1MB with zero nested node_modules.
System requirements
| Requirement | Minimum version |
|---|---|
| Bun | >= 1.2.2 |
| Operating system | macOS, Linux, or Windows (WSL recommended) |
Install Bun
Install Bun
bun command is available on your PATH.Install Nue
Install nuekit globally
nue binary to your global PATH. No node_modules directory is created in your projects — nuekit and all its sub-packages live in Bun’s global cache.The
nuekit package includes nuemark, nuedom, nuestate, nue-glow, and nueyaml as dependencies. You install one package and get the full ecosystem.Confirm the install works
Runnue --help to see all available commands and options:
Upgrading Nue
To upgrade to the latest version of nuekit:The 1MB footprint
A typical React or Next.js project installs 500MB or more ofnode_modules before you write a single line of code. Nue’s entire dependency tree — including the Markdown renderer, syntax highlighter, reactive component runtime, and state manager — is under 1MB as a global install.
This has practical consequences:
- No per-project installs. You don’t run
bun installornpm installwhen creating a new Nue project. The global install is shared across every project on your machine. - Instant cold starts. The CLI starts in milliseconds because there is no module resolution graph to traverse at startup.
- No lockfile drift. There is no
package-lock.jsonorbun.lockbto keep in sync across team members for the framework itself.
Troubleshooting
'nue' command not found after install
'nue' command not found after install
Bun installs global binaries to Add this line to your
~/.bun/bin. Make sure this directory is on your PATH:~/.bashrc, ~/.zshrc, or equivalent shell configuration file, then restart your terminal.Bun version is below 1.2.2
Bun version is below 1.2.2
Run
bun upgrade to update to the latest stable release. If you installed Bun through a package manager (Homebrew, APT, etc.), upgrade through that package manager instead to avoid version conflicts.'Not a Nue directory' error when running nue
'Not a Nue directory' error when running nue
Nue’s serve and build commands require either a
site.yaml file or an index.html / index.md in the current directory. If neither is present, Nue exits with this message. Create one of those files or navigate to your project directory before running nue.Next steps
Quickstart
Create your first project and start the dev server in under a minute.
Introduction
Learn what Nue is, how it compares to React, and which packages it includes.