npm-ping

Ping npm 注册表

选择命令行版本:

概要

🌐 Synopsis

npm ping

注意:此命令不支持工作区。

🌐 Note: This command is unaware of workspaces.

描述

🌐 Description

ping 配置的或指定的 npm 注册表并验证身份验证。如果成功,它将输出类似以下内容:

🌐 Ping the configured or given npm registry and verify authentication. If it works it will output something like:

npm notice PING https://registry.npmjs.org/
npm notice PONG 255ms

否则你会得到一个错误:

🌐 otherwise you will get an error:

npm notice PING http://foo.com/
npm ERR! code E404
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true

配置

🌐 Configuration

registry

  • 默认: "https://registry.npmjs.org/"
  • 类型:网址

npm 注册表的基本 URL。

🌐 The base URL of the npm registry.

也可以看看

🌐 See Also