2019-11-05 14:55:08 -05:00
|
|
|
---
|
2019-11-18 21:01:39 +02:00
|
|
|
section: cli-commands
|
2019-11-05 14:55:08 -05:00
|
|
|
title: npm-ping
|
|
|
|
description: Ping npm registry
|
|
|
|
---
|
|
|
|
|
2019-11-18 21:01:39 +02:00
|
|
|
# npm-ping(1)
|
2019-11-05 14:55:08 -05:00
|
|
|
|
|
|
|
## Ping npm registry
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm ping [--registry <registry>]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Description
|
|
|
|
|
|
|
|
Ping the configured or given npm registry and verify authentication.
|
|
|
|
If it works it will output something like:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
Ping success: {*Details about registry*}
|
|
|
|
```
|
|
|
|
otherwise you will get:
|
|
|
|
```bash
|
|
|
|
Ping error: {*Detail about error}
|
|
|
|
```
|
|
|
|
|
|
|
|
### See Also
|
|
|
|
|
2020-10-02 17:52:19 -04:00
|
|
|
* [npm config](/cli-commands/config)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npmrc](/configuring-npm/npmrc)
|