1 ---
2 title: npm-ping
3 section: 1
4 description: Ping npm registry
5 github_repo: npm/cli
6 github_branch: release/v7
7 github_path: docs/content/commands/npm-ping.md
8 redirect_from:
9 - /cli-documentation/v7/cli-commands/npm-ping
10 - /cli-documentation/v7/cli-commands/ping
11 - /cli-documentation/v7/commands/npm-ping
12 - /cli-documentation/v7/commands/ping
13 - /cli-documentation/v7/npm-ping
14 - /cli-documentation/v7/ping
15 - /cli/v7/cli-commands/npm-ping
16 - /cli/v7/cli-commands/ping
17 - /cli/v7/commands/ping
18 - /cli/v7/npm-ping
19 - /cli/v7/ping
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm ping [--registry <registry>]
26 ```
27
28 Note: This command is unaware of workspaces.
29
30 ### Description
31
32 Ping the configured or given npm registry and verify authentication. If it works it will output something like:
33
34 ```bash
35 Ping success: {*Details about registry*}
36 ```
37
38 otherwise you will get:
39
40 ```bash
41 Ping error: {*Detail about error}
42 ```
43
44 ### Configuration
45
46 #### `registry`
47
48 - Default: "https://registry.npmjs.org/"
49 - Type: URL
50
51 The base URL of the npm registry.
52
53 ### See Also
54
55 - [npm doctor](/cli/v7/commands/npm-doctor)
56 - [npm config](/cli/v7/commands/npm-config)
57 - [npmrc](/cli/v7/configuring-npm/npmrc)