Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added user email to config #2
When doing npm.registry.adduser, the details do not get added to local npm.config. Username and password (with auth) are added to npm.config on the method, but not the email address. Hence, when there is no local ~/.npmrc file, npm.commands.publish is not able to find an email, and the publish fails. This is true in cases on CI (travis) where a new machine does not have a local ~/.npmrc file. This change adds the email to the npm.config, that can then be used by npm.commands.publish, to push the repository successfully.