更新README

This commit is contained in:
曾文豪
2026-04-29 11:26:12 +08:00
parent 523cc777f8
commit 9b552a2afc

View File

@@ -22,7 +22,17 @@
## 安装
需先配置公司私有 npm 仓库,再执行:
### 1. 配置私有 npm 仓库
本包托管在公司 Gitea 私有 registry需在项目根目录或用户目录`.npmrc` 中增加如下配置:
```ini
@tiesheng:registry=https://git.tieshengkeji.com/api/packages/tieshengkeji/npm/
```
> 该配置将 `@tiesheng` 作用域下的包解析指向私有仓库,其它包仍走默认 registry不影响现有依赖。
### 2. 安装依赖
```bash
npm install @tiesheng/npm-tool