From 6d8d964e5ce81c77dcc875477caf1c071912a6b8 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Tue, 4 Aug 2026 16:34:20 +0800 Subject: [PATCH] =?UTF-8?q?README=20=E5=AE=89=E8=A3=9D=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E6=94=B9=E7=94=A8=E5=85=AC=E5=8F=B8=20npm=20registry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 摘要: 套件發佈在 git.catan.com.tw 的 Frontend registry 而非官方 npmjs, 安裝與升級指令補上 --registry 參數,避免照抄預設指令裝不到。 Co-Authored-By: Claude Fable 5 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 56505e2..e95ac8b 100644 --- a/README.md +++ b/README.md @@ -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(儲存時自動驗證)