all posts

Default value must be string or number error when running npm adduser

Published to Blog on 13 May 2014

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 and then retry npm adduser again

Dan Hounshell
Web geek, nerd, amateur maker. Likes: apis, node, motorcycles, sports, chickens, watches, food, Nashville, Savannah, Cincinnati and family.
Dan Hounshell on Twitter