Skip to content

Commit

Permalink
docs: update documentation for ping (#4423)
Browse files Browse the repository at this point in the history
Fixes #4136
  • Loading branch information
fhinkel committed Feb 16, 2022
1 parent 88bab35 commit 20378c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/content/commands/npm-ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ Ping the configured or given npm registry and verify authentication.
If it works it will output something like:

```bash
Ping success: {*Details about registry*}
npm notice PING https://registry.npmjs.org/
npm notice PONG 255ms
```
otherwise you will get:
otherwise you will get an error:
```bash
Ping error: {*Detail about error}
npm notice PING http://foo.com/
npm ERR! code E404
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
```

### Configuration
Expand Down

0 comments on commit 20378c6

Please sign in to comment.