README 安裝指令改用公司 npm registry

摘要:
套件發佈在 git.catan.com.tw 的 Frontend registry 而非官方 npmjs,
安裝與升級指令補上 --registry 參數,避免照抄預設指令裝不到。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-04 16:34:20 +08:00
co-authored by Claude Fable 5
parent d67b0de742
commit 6d8d964e5c
+9 -1
View File
@@ -21,10 +21,18 @@
## 快速開始
```bash
npm install -g telegram-codex-bot
# 套件發佈在公司的 npm registry(不是官方 npmjs),安裝要指定 --registry
npm install -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/
telegram-codex-bot start # 先做環境檢查(codex/登入/pm2/git),再把控制台掛上 pm2
```
之後升級同樣帶 `--registry`:
```bash
npm update -g telegram-codex-bot --registry=https://git.catan.com.tw/api/packages/Frontend/npm/
```
打開 **http://localhost:3799** →「🤖 Bot 管理」→「➕ 新增 Bot」:
1. 填名稱、Telegram token(儲存時自動驗證)