gat-bypass-2fa-docs
@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/v8 |
| 7 | github_path: docs/lib/content/commands/npm-ping.md |
| 8 | redirect_from: |
| 9 | - /cli-documentation/v8/cli-commands/npm-ping |
| 10 | - /cli-documentation/v8/cli-commands/ping |
| 11 | - /cli-documentation/v8/commands/npm-ping |
| 12 | - /cli-documentation/v8/commands/ping |
| 13 | - /cli-documentation/v8/npm-ping |
| 14 | - /cli-documentation/v8/ping |
| 15 | - /cli/v8/cli-commands/npm-ping |
| 16 | - /cli/v8/cli-commands/ping |
| 17 | - /cli/v8/commands/ping |
| 18 | - /cli/v8/npm-ping |
| 19 | - /cli/v8/ping |
| 20 | --- |
| 21 | |
| 22 | ### Synopsis |
| 23 | |
| 24 | ```bash |
| 25 | npm ping |
| 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 | npm notice PING https://registry.npmjs.org/ |
| 36 | npm notice PONG 255ms |
| 37 | ``` |
| 38 | |
| 39 | otherwise you will get an error: |
| 40 | |
| 41 | ```bash |
| 42 | npm notice PING http://foo.com/ |
| 43 | npm ERR! code E404 |
| 44 | npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true |
| 45 | ``` |
| 46 | |
| 47 | ### Configuration |
| 48 | |
| 49 | #### `registry` |
| 50 | |
| 51 | - Default: "https://registry.npmjs.org/" |
| 52 | - Type: URL |
| 53 | |
| 54 | The base URL of the npm registry. |
| 55 | |
| 56 | ### See Also |
| 57 | |
| 58 | - [npm doctor](/cli/v8/commands/npm-doctor) |
| 59 | - [npm config](/cli/v8/commands/npm-config) |
| 60 | - [npmrc](/cli/v8/configuring-npm/npmrc) |