选择命令行版本:
See Details
目录
概要
¥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
registry
-
默认值:"https://registry.npmjs.org/"
¥Default: "https://registry.npmjs.org/"
-
类型:URL
¥Type: URL
npm 注册表的基本 URL。
¥The base URL of the npm registry.
也可以看看
¥See Also
npm 中文网 - 粤ICP备13048890号