npm config listDisplay effective npm configuration.
Configuration, npmrc, cache management, profile, and token workflows.
Inspect and modify npm configuration.
npm config listDisplay effective npm configuration.
npm config ls -lDisplay defaults and computed values.
npm config get registryRead a configuration value.
npm config set registry https://registry.npmjs.org/Write a configuration value.
npm config delete proxyRemove a config setting.
npm config editOpen the user npmrc in an editor.
Inspect and clean npm cache.
npm cache verifyValidate the integrity of the npm cache.
npm cache clean --forceRemove cached data. Force is required.
npm cache add <package>Fetch a package into the local cache.
Manage tokens and profile information.
npm token listShow tokens for the current account.
npm token createCreate a new auth token.
npm token revoke <id>Delete an auth token.
npm profile getRead the current npm profile.
npm profile set fullname "Your Name"Update profile fields.
Helpful commands when debugging npm on a machine.
npm prefix -gPrint the global installation prefix.
npm root -gPrint the global node_modules directory.
npm bin -gPrint the directory where global binaries are linked.
npm doctorCheck common npm environment problems.
npm pingVerify connectivity to the configured registry.