codekingpro/portable-devtools
114k
1.TH "NPM-PING" "1" "April 2026" "NPM@11.13.0" ""
2.SH "NAME"
3\fBnpm-ping\fR - Ping npm registry
4.SS "Synopsis"
5.P
6.RS 2
7.nf
8npm ping
9.fi
10.RE
11.P
12Note: This command is unaware of workspaces.
13.SS "Description"
14.P
15Ping the configured or given npm registry and verify authentication. If it works it will output something like:
16.P
17.RS 2
18.nf
19npm notice PING https://registry.npmjs.org/
20npm notice PONG 255ms
21.fi
22.RE
23.P
24otherwise you will get an error:
25.P
26.RS 2
27.nf
28npm notice PING http://foo.com/
29npm ERR! code E404
30npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
31.fi
32.RE
33.SS "Configuration"
34.SS "\fBregistry\fR"
35.RS 0
36.IP \(bu 4
37Default: "https://registry.npmjs.org/"
38.IP \(bu 4
39Type: URL
40.RE 0
41
42.P
43The base URL of the npm registry.
44.SS "See Also"
45.RS 0
46.IP \(bu 4
47npm help doctor
48.IP \(bu 4
49npm help config
50.IP \(bu 4
51npm help npmrc
52.RE 0
53 