Problem: You try to run npm adduser command and get an error message that starts with something like “Default value must be string or number”.
Cause: It is attempting to access your default email address which you do not have set.
Fix: npm config set email youremail@yourdomain.com and then retry npm adduser again