1--- 2title: npm-ping 3section: 1 4description: Ping npm registry 5--- 6 7### Synopsis 8 9```bash 10npm ping 11``` 12 13Note: This command is unaware of workspaces. 14 15### Description 16 17Ping the configured or given npm registry and verify authentication. 18If it works it will output something like: 19 20```bash 21npm notice PING https://registry.npmjs.org/ 22npm notice PONG 255ms 23``` 24otherwise you will get an error: 25```bash 26npm notice PING http://foo.com/ 27npm ERR! code E404 28npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true 29``` 30 31### Configuration 32 33#### `registry` 34 35* Default: "https://registry.npmjs.org/" 36* Type: URL 37 38The base URL of the npm registry. 39 40 41 42### See Also 43 44* [npm doctor](/commands/npm-doctor) 45* [npm config](/commands/npm-config) 46* [npmrc](/configuring-npm/npmrc) 47