> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Bach builds Windows installers from one bach.toml with the bach command: bach init, bach check, bach preview, bach build. Installs are per user and need no administrator rights by default. installer.scope = "machine" installs for every user after one Windows prompt. On Windows, run setup files with Start-Process -Wait -PassThru in PowerShell, and give signtool arguments that start with the word sign.

# Troubleshooting

> Find your problem: build errors, missing files, Windows warnings, installs that fail, updates that don't arrive, leftovers after uninstall and more.

Something not working? Find your question below. Two tools answer many of them: `bach doctor` checks that your computer can build, and every setup writes a log to `%TEMP%\<app id>-setup.log`.

## Building

* [Why won't my config build?](/docs/troubleshooting/build-errors.md)
* [Why can't Bach find my program, or why are files missing?](/docs/troubleshooting/missing-files.md)

## Installing

* [Why does Windows show a security warning?](/docs/troubleshooting/windows-warnings.md)
* [Why does installing fail?](/docs/troubleshooting/install-problems.md)
* [Why doesn't my app start after installing?](/docs/troubleshooting/install-problems.md#the-app-doesnt-start-after-installing)
* [Why does my installer ask for an administrator password?](/docs/troubleshooting/install-problems.md#the-installer-asks-for-an-administrator-password)

## After installing

* [Why aren't automatic updates working?](/docs/troubleshooting/updates.md)
* [Why are files left after uninstalling?](/docs/troubleshooting/uninstall.md)

## Installing Bach itself

### `bach` isn't recognized

Open a new terminal; `PATH` changes only reach new ones. If it still fails, call it by its full path, such as `%LOCALAPPDATA%\Programs\bach-cli\bach.exe`, or reinstall with one of the [install methods](/docs/installation.md).

### An old version of bach runs

Another copy comes first on your `PATH`. Run `where.exe bach` (Windows) or `which -a bach` and remove the one you don't want.

### npm says `EACCES` or permission denied

Don't use `sudo`. Give npm a folder of your own: `npm config set prefix ~/.npm-global`, add its `bin` folder to `PATH`, and install again.

### "The bach program for ... isn't installed"

npm skipped the platform package because it ran with `--omit=optional`. Install again without that option.

### npm says 404 for @usebach/cli

A version published minutes ago may not be everywhere yet. Wait and retry, and check `npm config get registry` if it keeps happening.

### install.ps1 refuses a folder

It only writes into a folder it created. Set `BACH_INSTALL_DIR` to an empty folder.

### "The download doesn't match its published SHA-256"

Nothing was installed. Try again, or download the zip from the [releases page](https://github.com/usebach/bach/releases).

## Still stuck?

See [Getting help](/docs/resources/getting-help.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.