gh-pages icon indicating copy to clipboard operation
gh-pages copied to clipboard

Error on deploy when 2 step auth is enabled

Open 0xSG opened this issue 6 years ago • 2 comments

I am getting an error while deploying. It asks for the username and password. if 2Step Authentication is enabled on my account, it is showing this error: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] deploy:gh-pages -d build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] deploy script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

When i turned of my 2Step Authentication then it worked. i Have checked it many times but same happend everytime.

0xSG avatar Nov 23 '18 11:11 0xSG

I was having the same issue but only with some repositories. I remove the repository, cloned again and it worked 🤷‍

nmicht avatar Feb 23 '19 00:02 nmicht

If you're encountering this problem, consider using git over SSH instead of HTTPS. https://stackoverflow.com/questions/10909221/why-is-github-asking-for-username-password-when-following-the-instructions-on-sc

merges avatar Mar 20 '19 23:03 merges