Mastering npm config list | Generated by AI

Home 2026.02

I’ll explain the npm config list command and how to use it.

Basic Usage

npm config list

This command displays your current npm configuration settings. It shows:

Common Variations

List only user and global settings (without defaults):

npm config list --json

List in JSON format for easier parsing:

npm config list -l

Show all config options including defaults:

npm config list -l

What You’ll See

The output typically includes settings like:

Get a specific config value:

npm config get registry

Set a config value:

npm config set registry https://registry.npmjs.org/

Delete a config value:

npm config delete proxy

Edit config in your default editor:

npm config edit

The command is helpful for debugging npm issues, checking your registry settings, or verifying authentication configuration.


Back Donate