gh-pages
gh-pages copied to clipboard
Error on deploy when 2 step auth is enabled
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.
I was having the same issue but only with some repositories. I remove the repository, cloned again and it worked 🤷
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