mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user