I have played with npm set and npm config set for several times, now I want to reset to default values (a kind of factory reset).
D
For what it's worth, you can reset to default the value of a config entry with npm config delete (or npm config rm , but the usage of npm config rm is not mentioned in npm help config).
Example:
# set registry value
npm config set registry "https://skimdb.npmjs.com/registry"
# revert change back to default
npm config delete registry