main
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | --- |
| 2 | title: npm-ping |
| 3 | section: 1 |
| 4 | description: Ping npm registry |
| 5 | github_repo: npm/cli |
| 6 | github_branch: release/v6 |
| 7 | github_path: docs/content/commands/npm-ping.md |
| 8 | redirect_from: |
| 9 | - /cli-documentation/v6/cli-commands/npm-ping |
| 10 | - /cli-documentation/v6/cli-commands/ping |
| 11 | - /cli-documentation/v6/commands/npm-ping |
| 12 | - /cli-documentation/v6/commands/ping |
| 13 | - /cli-documentation/v6/npm-ping |
| 14 | - /cli-documentation/v6/ping |
| 15 | - /cli/v6/cli-commands/npm-ping |
| 16 | - /cli/v6/cli-commands/ping |
| 17 | - /cli/v6/commands/ping |
| 18 | - /cli/v6/npm-ping |
| 19 | - /cli/v6/ping |
| 20 | --- |
| 21 | |
| 22 | ### Synopsis |
| 23 | |
| 24 | ```bash |
| 25 | npm ping [--registry <registry>] |
| 26 | ``` |
| 27 | |
| 28 | ### Description |
| 29 | |
| 30 | Ping the configured or given npm registry and verify authentication. If it works it will output something like: |
| 31 | |
| 32 | ```bash |
| 33 | Ping success: {*Details about registry*} |
| 34 | ``` |
| 35 | |
| 36 | otherwise you will get: |
| 37 | |
| 38 | ```bash |
| 39 | Ping error: {*Detail about error} |
| 40 | ``` |
| 41 | |
| 42 | ### See Also |
| 43 | |
| 44 | - [npm config](/cli/v6/commands/npm-config) |
| 45 | - [npmrc](/cli/v6/configuring-npm/npmrc) |