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 youremail@yourdomain.com and then retry npm adduser again

 

 


Dan Hounshell
Web geek, nerd, amateur maker. Likes: apis, node, mobile, motorcycles, watches, food, Nashville, Savannah, Cincinnati and family. Dislikes: mean people
Dan Hounshell on Twitter