docs: update npm upgrade examples to stable 1.5.6

This commit is contained in:
rianli
2026-03-10 23:37:31 +08:00
parent 8d6b5197b0
commit d93b9c414c
2 changed files with 6 additions and 8 deletions

View File

@@ -370,6 +370,8 @@ STT supports two-level configuration with priority fallback:
### Option 1: Upgrade via npm (Recommended)
Current latest npm version: `1.5.6`
```bash
bash ./scripts/npm-upgrade.sh
```
@@ -377,11 +379,8 @@ bash ./scripts/npm-upgrade.sh
The script automatically backs up channel config → uninstalls old plugins → installs new version → restores config → restarts gateway.
```bash
# Specify tag
bash ./scripts/npm-upgrade.sh --tag alpha
# Specify exact version
bash ./scripts/npm-upgrade.sh --version 1.0.0-alpha.0
bash ./scripts/npm-upgrade.sh --version 1.5.6
```
### Option 2: Upgrade via Source

View File

@@ -367,6 +367,8 @@ STT 支持两级配置,按优先级查找:
### 方式一:通过 npm 升级(推荐)
当前最新 npm 版本:`1.5.6`
```bash
bash ./scripts/npm-upgrade.sh
```
@@ -374,11 +376,8 @@ bash ./scripts/npm-upgrade.sh
脚本会自动备份通道配置 → 卸载旧插件 → 安装新版本 → 恢复配置 → 重启网关。
```bash
# 指定 tag
bash ./scripts/npm-upgrade.sh --tag alpha
# 指定版本号
bash ./scripts/npm-upgrade.sh --version 1.0.0-alpha.0
bash ./scripts/npm-upgrade.sh --version 1.5.6
```
### 方式二:通过源码升级