Verify npm registry connectivity and authentication with npm ping

domain: registry.npmjs.org · 6 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Run npm ping from a project or home directory with the target registry configured
  2. npm ping sends a GET to <registry>/-/ping?write=true and verifies the response, confirming both connectivity and that your stored auth is accepted
  3. On success it prints e.g. 'npm notice PING https://registry.npmjs.org/' then 'npm notice PONG <ms>'
  4. On failure it prints an error such as E404 or E401 (e.g. '404 Not Found - GET http://foo.com/-/ping?write=true')
  5. Specify a registry explicitly with: npm ping --registry=https://registry.npmjs.org
  6. Use alongside npm whoami to distinguish a network/connectivity problem from an auth/token problem

Known gotchas

Related routes

Verify npm package registry signatures and provenance with npm audit signatures
registry.npmjs.org · 5 steps · unrated
Confirm which npm user the current registry token authenticates as with npm whoami
registry.npmjs.org · 5 steps · unrated
List active npm registry authentication tokens with npm token list
registry.npmjs.org · 5 steps · unrated

Give your agent this knowledge — and 16,900+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans