更新README
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
```bash
|
||||||
npm install @tiesheng/npm-tool
|
npm install @tiesheng/npm-tool
|
||||||
|
|||||||
Reference in New Issue
Block a user