Skip to content

Commit 20378c6

Browse files
authored
docs: update documentation for ping (#4423)
Fixes #4136
1 parent 88bab35 commit 20378c6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/content/commands/npm-ping.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ Ping the configured or given npm registry and verify authentication.
1818
If it works it will output something like:
1919

2020
```bash
21-
Ping success: {*Details about registry*}
21+
npm notice PING https://registry.npmjs.org/
22+
npm notice PONG 255ms
2223
```
23-
otherwise you will get:
24+
otherwise you will get an error:
2425
```bash
25-
Ping error: {*Detail about error}
26+
npm notice PING http://foo.com/
27+
npm ERR! code E404
28+
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
2629
```
2730

2831
### Configuration

0 commit comments

Comments
 (0)