I'm trying since 3 days to deploy my react app on Github pages.
I followed the steps of this:
it builds, but woudnt push to github.
email@example.com deploy /home/zsuzsa/Asztal/Projects/resume
> gh-pages -d build
Cloning into 'firstname.lastname@example.org!ZsuzsaMano!ZsuzsaMano.github.io'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! email@example.com deploy: `gh-pages -d build`
npm ERR! Exit status 1
npm ERR! Failed at the firstname.lastname@example.org deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output abov
npm ERR! A complete log of this run can be found in:
npm ERR! /home/zsuzsa/.npm/_logs/2019-11-17T18_13_43_540Z-debug.log
then after a lot of different trys I tried to just drag the build folder to my repo, after the 3rd time, it finally worked.
I set githubpages in settings, but on
https://zsuzsamano.github.io/Resume/ I still only get Error 404
https://github.com/ZsuzsaMano/Resume is my repo.
Im already quite desperate.... greatful for any ideas
Im using Ubuntu 16.04 and Atom
Solved! Solved! Go to Solution.
Having the same issue but I have https for the homepage already
I change ssh to https in package.json homepage
That made the magic.
Unacceptable. I see plenty of developers not having to switch over to https and getting this to work. I don't want to have to keep putting my username and password in every time I'm deploying.
I just solved this problem...
If you use a passphrase for git authentication then this solution might work for you. I wrote this answer on StackExchange. Check it out here: https://superuser.com/questions/1435950/git-gh-pages-deployment-permissions-error-permission-denied-...