To restore/reset npm configuration to default values with JavaScript, we run npm config delete
.
For instance, we run
npm config delete registry
to delete the registry
entry from the config to make npm
use the default value for the registry
config.