Skip to content

Feature/error handle#11

Open
sdnts wants to merge 10 commits intomasterfrom
feature/error-handle
Open

Feature/error handle#11
sdnts wants to merge 10 commits intomasterfrom
feature/error-handle

Conversation

@sdnts
Copy link
Copy Markdown
Contributor

@sdnts sdnts commented Apr 18, 2016

No description provided.

Siddhant Sinha added 8 commits March 15, 2016 18:50
Establish precedence between authentication methods
Update Readme
Add tests for rc configuration
Reason: You need to install the module you are currently working on.
Comment thread README.md
npm install npm-cli-login

Use -g flag to use npm-cli-login via the CLI
Using the -g flag isn't necessary when you run via NPM
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most people use it as the CLI, so let's keep the example with -g.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, editing

Comment thread lib/login.js Outdated
}, function (err, data) {
if (err) {
return callback(err);
throw new Error(err);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why throw instead of passing to the callback?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a precaution to make sure never ever do I write to NPMRC unless absolutely sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants