npm-ping.1 851 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .TH "NPM-PING" "1" "March 2026" "NPM@11.12.0" ""
  2. .SH "NAME"
  3. \fBnpm-ping\fR - Ping npm registry
  4. .SS "Synopsis"
  5. .P
  6. .RS 2
  7. .nf
  8. npm ping
  9. .fi
  10. .RE
  11. .P
  12. Note: This command is unaware of workspaces.
  13. .SS "Description"
  14. .P
  15. Ping the configured or given npm registry and verify authentication. If it works it will output something like:
  16. .P
  17. .RS 2
  18. .nf
  19. npm notice PING https://registry.npmjs.org/
  20. npm notice PONG 255ms
  21. .fi
  22. .RE
  23. .P
  24. otherwise you will get an error:
  25. .P
  26. .RS 2
  27. .nf
  28. npm notice PING http://foo.com/
  29. npm ERR! code E404
  30. npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true
  31. .fi
  32. .RE
  33. .SS "Configuration"
  34. .SS "\fBregistry\fR"
  35. .RS 0
  36. .IP \(bu 4
  37. Default: "https://registry.npmjs.org/"
  38. .IP \(bu 4
  39. Type: URL
  40. .RE 0
  41. .P
  42. The base URL of the npm registry.
  43. .SS "See Also"
  44. .RS 0
  45. .IP \(bu 4
  46. npm help doctor
  47. .IP \(bu 4
  48. npm help config
  49. .IP \(bu 4
  50. npm help npmrc
  51. .RE 0