docs: redirect /install/node to install section

This commit is contained in:
Peter Steinberger
2026-01-16 23:18:44 +00:00
parent 37fa4f7eef
commit af31e0d969
5 changed files with 33 additions and 5 deletions

View File

@@ -9,7 +9,28 @@ read_when:
Runtime baseline: **Node >=22**.
If the installer says it succeeded but you later see `clawdbot: command not found`, its usually a Node/npm PATH issue. See: [Node.js + npm (PATH sanity)](/install/node).
If the installer says it succeeded but you later see `clawdbot: command not found`, its usually a Node/npm PATH issue (global npm bin dir not on PATH). See the section below.
## Node.js + npm (PATH sanity)
Quick diagnosis:
```bash
node -v
npm -v
npm bin -g
echo "$PATH"
```
If the output of `npm bin -g` is **not** present inside `echo "$PATH"`, your shell cant find global npm binaries (including `clawdbot`).
Fix: add it to your shell startup file (zsh: `~/.zshrc`, bash: `~/.bashrc`):
```bash
export PATH="/path/from/npm/bin/-g:$PATH"
```
Then open a new terminal (or `rehash` in zsh / `hash -r` in bash).
## Recommended (installer script)

View File

@@ -19,7 +19,7 @@ To see the current flags/behavior, run:
curl -fsSL https://clawd.bot/install.sh | bash -s -- --help
```
If the installer completes but `clawdbot` is not found in a new terminal, its usually a Node/npm PATH issue. See: [Node.js + npm (PATH sanity)](/install/node).
If the installer completes but `clawdbot` is not found in a new terminal, its usually a Node/npm PATH issue. See: [Install](/install#nodejs--npm-path-sanity).
## install.sh (recommended)