2019-11-05 14:55:08 -05:00
|
|
|
---
|
|
|
|
title: npm-ping
|
2020-11-01 07:54:36 +01:00
|
|
|
section: 1
|
2019-11-05 14:55:08 -05:00
|
|
|
description: 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-11-01 07:54:36 +01:00
|
|
|
* [npm config](/commands/npm-config)
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npmrc](/configuring-npm/npmrc)
|