Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorF. Hinkelmann <franziska.hinkelmann@gmail.com>2022-02-16 19:29:44 +0300
committerGitHub <noreply@github.com>2022-02-16 19:29:44 +0300
commit20378c67cd533db514dd2aec7828c6d119e9d6c7 (patch)
tree99e465857bc2a39c19fd4046ac6d68f0dbc270b5 /docs
parent88bab354097023c96c49e78d7ee54159f495bf73 (diff)
docs: update documentation for ping (#4423)
Fixes https://github.com/npm/cli/issues/4136
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-ping.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/content/commands/npm-ping.md b/docs/content/commands/npm-ping.md
index 6f1c4582f..c59a56e61 100644
--- a/docs/content/commands/npm-ping.md
+++ b/docs/content/commands/npm-ping.md
@@ -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