11cb0ef41Sopenharmony_ci--- 21cb0ef41Sopenharmony_cititle: npm-ping 31cb0ef41Sopenharmony_cisection: 1 41cb0ef41Sopenharmony_cidescription: Ping npm registry 51cb0ef41Sopenharmony_ci--- 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci### Synopsis 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ci```bash 101cb0ef41Sopenharmony_cinpm ping 111cb0ef41Sopenharmony_ci``` 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_ciNote: This command is unaware of workspaces. 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ci### Description 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciPing the configured or given npm registry and verify authentication. 181cb0ef41Sopenharmony_ciIf it works it will output something like: 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ci```bash 211cb0ef41Sopenharmony_cinpm notice PING https://registry.npmjs.org/ 221cb0ef41Sopenharmony_cinpm notice PONG 255ms 231cb0ef41Sopenharmony_ci``` 241cb0ef41Sopenharmony_ciotherwise you will get an error: 251cb0ef41Sopenharmony_ci```bash 261cb0ef41Sopenharmony_cinpm notice PING http://foo.com/ 271cb0ef41Sopenharmony_cinpm ERR! code E404 281cb0ef41Sopenharmony_cinpm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true 291cb0ef41Sopenharmony_ci``` 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci### Configuration 321cb0ef41Sopenharmony_ci 331cb0ef41Sopenharmony_ci#### `registry` 341cb0ef41Sopenharmony_ci 351cb0ef41Sopenharmony_ci* Default: "https://registry.npmjs.org/" 361cb0ef41Sopenharmony_ci* Type: URL 371cb0ef41Sopenharmony_ci 381cb0ef41Sopenharmony_ciThe base URL of the npm registry. 391cb0ef41Sopenharmony_ci 401cb0ef41Sopenharmony_ci 411cb0ef41Sopenharmony_ci 421cb0ef41Sopenharmony_ci### See Also 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ci* [npm doctor](/commands/npm-doctor) 451cb0ef41Sopenharmony_ci* [npm config](/commands/npm-config) 461cb0ef41Sopenharmony_ci* [npmrc](/configuring-npm/npmrc) 47