Skip to main content
Version: 11.x

pnpm ping

新增于:v11.0.0

🌐 Added in: v11.0.0

ping 配置的注册表以验证连接性。

🌐 Ping the configured registry to verify connectivity.

pnpm ping [--registry <url>]

成功时,将打印注册表的响应。这对于快速确认当前机器是否可以访问注册表而无需安装或发布任何内容非常有用。

🌐 On success, the registry's response is printed. This is useful for quickly confirming that the current machine can reach the registry without installing or publishing anything.

选项

🌐 Options

--registry <url>

要 ping 的注册表。默认为配置的默认注册表。

🌐 The registry to ping. Defaults to the configured default registry.