docs: add npm registry recommendation for installation

Update installation guides to specify the official npm registry
and add a recommendation to use it for global installs, as some
mirrors may not sync platform packages in time.
This commit is contained in:
weishu
2026-03-02 12:00:19 +08:00
parent 673e0c8aec
commit 91d03e481f
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -70,9 +70,11 @@ HAPI has three components:
## Install the CLI
```bash
npm install -g @twsxtd/hapi
npm install -g @twsxtd/hapi --registry=https://registry.npmjs.org
```
> Recommendation: use the official npm registry for global install. Some mirrors may not sync platform packages in time.
Or with Homebrew:
```bash
+3 -1
View File
@@ -7,7 +7,7 @@
::: code-group
```bash [npm]
npm install -g @twsxtd/hapi
npm install -g @twsxtd/hapi --registry=https://registry.npmjs.org
```
```bash [Homebrew]
@@ -20,6 +20,8 @@ npx @twsxtd/hapi
:::
> Recommendation: use the official npm registry for global install. Some mirrors may not sync platform packages in time.
Other install options: [Installation](./installation.md)
## Start the hub