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).
npm set
npm config set
D
If you run npm config edit, you'll get an editor showing the current configuration, and also a list of options and their default values.
npm config edit
But I don't think there's a 'reset' command.