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:
@@ -21,10 +21,18 @@
|
|||||||
## 快速開始
|
## 快速開始
|
||||||
|
|
||||||
```bash
|
```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
|
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」:
|
打開 **http://localhost:3799** →「🤖 Bot 管理」→「➕ 新增 Bot」:
|
||||||
|
|
||||||
1. 填名稱、Telegram token(儲存時自動驗證)
|
1. 填名稱、Telegram token(儲存時自動驗證)
|
||||||
|
|||||||
Reference in New Issue
Block a user