选择命令行版本:
🌐 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 E404npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
🌐 Configuration
registrynpm 注册表的基本 URL。
🌐 The base URL of the npm registry.
🌐 See Also