| title | Installation |
|---|---|
| description | Install Nanocoder via NPM, Homebrew, or Nix Flakes |
| sidebar_order | 2 |
Install globally and use anywhere:
npm install -g @nanocollective/nanocoderThen run in any directory:
nanocoderFirst, tap the repository:
brew tap nano-collective/nanocoder https://github.com/Nano-Collective/nanocoderThen install:
brew install nanocoderRun in any directory:
nanocoderTo update:
# Update Homebrew's tap cache first (important!)
brew update
# Then upgrade nanocoder
brew upgrade nanocoderNote: If
brew upgrade nanocodershows the old version is already installed, runbrew updatefirst. Homebrew caches tap formulas locally and only refreshes them duringbrew update. Without updating the tap cache, you'll see the cached (older) version even if a newer formula exists in the repository.
Run Nanocoder directly using:
# If you have flakes enabled in your Nix config:
nix run github:Nano-Collective/nanocoder
# If you don't have flakes enabled:
nix run --extra-experimental-features 'nix-command flakes' github:Nano-Collective/nanocoderOr install from packages output:
# flake.nix
{
inputs = {
nanocoder = {
url = "github:Nano-Collective/nanocoder";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
# configuration.nix
{ pkgs, inputs, system, ... }: {
environment.systemPackages = [
inputs.nanocoder.packages."${system}".default
];
}If you want to contribute or modify Nanocoder:
Prerequisites:
- Node.js 20+
- pnpm
Setup:
- Clone and install dependencies:
git clone [repo-url]
cd nanocoder
pnpm install- Build the project:
pnpm run build- Run locally:
pnpm run startOr build and run in one command:
pnpm run dev