internal/website/docs/guides/install-troubleshooting.md
Use this page before micro new or micro agent demo when the CLI install is
unclear. The goal is to prove three boundaries in order: the micro binary is on
PATH, it is the version you expected, and the no-secret first-run path works
without provider keys.
curl -fsSL https://go-micro.dev/install.sh | sh
Use this when you want the released micro binary without building it yourself.
The generated services still need a Go toolchain when you run micro run, but the
installer itself does not require Go.
go install go-micro.dev/v6/cmd/micro@latest
Use this when Go is already installed and you want the binary in your Go bin
directory. If the command succeeds but micro is not found, your Go bin directory
is probably not on PATH.
PATH and versionCheck which binary your shell will run:
command -v micro
micro --version
If command -v micro prints nothing, add the install directory to PATH, then
open a new terminal and retry. Common locations are:
export PATH="$HOME/.micro/bin:$PATH" # binary installer
export PATH="$(go env GOPATH)/bin:$PATH" # go install
If micro --version shows an older binary than expected, remove the stale copy or
put the intended install directory earlier in PATH.
Once micro resolves, prove the local service runtime before adding LLM provider
keys:
micro new helloworld
cd helloworld
micro run
In another terminal:
curl -X POST http://localhost:8080/api/helloworld/Helloworld.Call \
-H 'Content-Type: application/json' -d '{"name":"World"}'
This checks the scaffold, local build, gateway, and service registration without calling a model provider.
| Symptom | Check | Fix |
|---|---|---|
micro: command not found | command -v micro | Add the installer bin directory or $(go env GOPATH)/bin to PATH, then open a new terminal. |
micro run cannot find Go | go version | Install Go 1.24 or newer from https://go.dev/doc/install. |
| The gateway port is busy | lsof -i :8080 | Stop the process using the port, or run with a different address. |
| Provider-key errors block an agent run | micro agent preflight | Stay on the no-secret path first: run micro agent demo, then the no-secret first-agent guide. |
After install verification succeeds, continue in order:
micro agent demo — print the provider-free first-agent demo command and next docs steps.For repository contributors, make install-smoke runs the same installer seam
against a local build without network access.