Skip to content
npm Docs
npmjs.comStatusSupport
About npm
Getting started
Packages and modules
Integrations
Organizations
Policies
Threats and Mitigations
npm CLI
CLI Commands
npm
npm access
npm adduser
npm audit
npm bugs
npm cache
npm ci
npm completion
npm config
npm dedupe
npm deprecate
npm diff
npm dist-tag
npm docs
npm doctor
npm edit
npm exec
npm explain
npm explore
npm find-dupes
npm fund
npm help
npm help-search
npm hook
npm init
npm install
npm install-ci-test
npm install-test
npm link
npm login
npm logout
npm ls
npm org
npm outdated
npm owner
npm pack
npm ping
npm pkg
npm prefix
npm profile
npm prune
npm publish
npm query
npm rebuild
npm repo
npm restart
npm root
npm run-script
npm search
npm shrinkwrap
npm star
npm stars
npm start
npm stop
npm team
npm test
npm token
npm uninstall
npm unpublish
npm unstar
npm update
npm version
npm view
npm whoami
npx
Configuring npm
Using npm

npm-ping

Ping npm registry
Table of contents
  • Synopsis
  • Description
  • Configuration
    • registry
  • See Also

Synopsis

 
npm ping

Note: This command is unaware of workspaces.

Description

Ping the configured or given npm registry and verify authentication. If it works it will output something like:

 
npm notice PING https://registry.npmjs.org/
npm notice PONG 255ms

otherwise you will get an error:

 
npm notice PING http://foo.com/
npm ERR! code E404
npm ERR! 404 Not Found - GET http://www.foo.com/-/ping?write=true

Configuration

registry

  • Default: "https://registry.npmjs.org/"
  • Type: URL

The base URL of the npm registry.

See Also

  • npm doctor
  • npm config
  • npmrc
Edit this page on GitHub