bach doctor checks that your computer can build, and every setup writes a log to %TEMP%\<app id>-setup.log.
Building
Installing
- Why does Windows show a security warning?
- Why does installing fail?
- Why doesn’t my app start after installing?
- Why does my installer ask for an administrator password?
After installing
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.
An old version of bach runs
Another copy comes first on yourPATH. 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 checknpm config get registry if it keeps happening.
install.ps1 refuses a folder
It only writes into a folder it created. SetBACH_INSTALL_DIR to an empty folder.