Find the message, then do the fix. If you do not know where the fault is, run fdtn doctor first.
Install fails
The install line prints fdtn install: and the reason. Nothing is installed when it stops.
Message
Fix
Node.js 22.19 or newer is missing., npm is missing. or Node.js v20... is too old.
Install Node.js 22.19 or newer from nodejs.org. Open a new terminal and run the install line again.
curl is not installed.
Install curl with your package manager.
npm cannot write to ...
Do the steps that the message prints, or install Node.js with nvm, fnm or Homebrew.
Installed fdtn. Your shell does not find it yet or fdtn: command not found
Run the line that the message prints, then open a new terminal.
the checksum of ... does not match.
A proxy changed the download. Try another network.
Run fdtn doctor
$ fdtn doctor # check the key, DNS, TLS and API access$ fdtn doctor --create # also start a small sandbox, run a command in it, and stop it$ fdtn doctor --json # print the result as JSON
✓ api key: from key file, starts with fdtn_, 45 characters
✓ dns: api.sbx.fdtn.dev -> 203.0.113.10
✓ tls: certificate for api.sbx.fdtn.dev accepted
✓ key accepted: listed your sandboxes
- sandbox round trip: run with --create to start and stop a small sandbox
Doctor stops at the first failure and prints a fix: line. It never prints the key. Exit code 0 means all checks pass.
Result
Fix
✗ api key: no key on this computer
Run fdtn auth.
! api key
The key has the wrong format. Copy it again and run fdtn auth --replace.
✗ dns: cannot resolve api.sbx.fdtn.dev
Check your VPN or DNS filter. Unset FDTN_DOMAIN.
✗ tls
Correct the system clock, or set NODE_EXTRA_CA_CERTS to your proxy's CA file.
✗ key accepted: request failed
Allow api.sbx.fdtn.dev and *.sbx.fdtn.dev on port 443.
✗ key accepted: key refused (HTTP 401) or (HTTP 403)
The key is wrong, revoked or expired. Create a new key, then fdtn auth --replace.
Send support the output of fdtn doctor --create, the sandbox ID, the time of the failure with time zone, and the error message. Never send your API key.