2025-04-10 14:36:22 -07:00
|
|
|
.TH "NPM-PING" "1" "April 2025" "NPM@11.3.0" ""
|
2015-07-06 00:00:48 -07:00
|
|
|
.SH "NAME"
|
2022-12-06 22:18:33 -05:00
|
|
|
\fBnpm-ping\fR - Ping npm registry
|
|
|
|
.SS "Synopsis"
|
2015-07-06 00:00:48 -07:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
2022-02-24 21:41:49 +00:00
|
|
|
npm ping
|
2015-07-06 00:00:48 -07:00
|
|
|
.fi
|
|
|
|
.RE
|
2021-03-23 14:58:11 -04:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
Note: This command is unaware of workspaces.
|
|
|
|
.SS "Description"
|
2015-07-06 00:00:48 -07:00
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
Ping the configured or given npm registry and verify authentication. If it works it will output something like:
|
2017-10-26 22:35:25 -04:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
2022-12-06 22:18:33 -05:00
|
|
|
npm notice PING https://registry.npmjs.org/
|
2022-02-19 05:11:58 +02:00
|
|
|
npm notice PONG 255ms
|
2017-10-26 22:35:25 -04:00
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.P
|
2022-02-19 05:11:58 +02:00
|
|
|
otherwise you will get an error:
|
2017-10-26 22:35:25 -04:00
|
|
|
.P
|
|
|
|
.RS 2
|
|
|
|
.nf
|
2022-12-06 22:18:33 -05:00
|
|
|
npm notice PING http://foo.com/
|
2022-02-19 05:11:58 +02:00
|
|
|
npm ERR! code E404
|
2022-12-06 22:18:33 -05:00
|
|
|
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
|
2017-10-26 22:35:25 -04:00
|
|
|
.fi
|
|
|
|
.RE
|
2022-12-06 22:18:33 -05:00
|
|
|
.SS "Configuration"
|
|
|
|
.SS "\fBregistry\fR"
|
2021-05-20 15:54:50 -04:00
|
|
|
.RS 0
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
|
|
|
Default: "https://registry.npmjs.org/"
|
|
|
|
.IP \(bu 4
|
2021-05-20 15:54:50 -04:00
|
|
|
Type: URL
|
2022-12-06 22:18:33 -05:00
|
|
|
.RE 0
|
2021-05-20 15:54:50 -04:00
|
|
|
|
|
|
|
.P
|
2022-12-06 22:18:33 -05:00
|
|
|
The base URL of the npm registry.
|
|
|
|
.SS "See Also"
|
2015-07-06 00:00:48 -07:00
|
|
|
.RS 0
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2020-12-11 18:54:56 -05:00
|
|
|
npm help doctor
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help config
|
2022-12-06 22:18:33 -05:00
|
|
|
.IP \(bu 4
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help npmrc
|
2022-12-06 22:18:33 -05:00
|
|
|
.RE 0
|