From 91d03e481f0896408974ec233b0b0717f9542762 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 2 Mar 2026 12:00:19 +0800 Subject: [PATCH] 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. --- docs/guide/installation.md | 4 +++- docs/guide/quick-start.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 88392f94..a15b7fa5 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -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 diff --git a/docs/guide/quick-start.md b/docs/guide/quick-start.md index 4018ec6e..62d4cfdd 100644 --- a/docs/guide/quick-start.md +++ b/docs/guide/quick-start.md @@ -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