DEV Community

Discussion on: How to deploy React App to GitHub Pages

Collapse
 
idongcodes profile image
Idong Essien

Hello ! This was a big help ! However, at step 5, I received this error:

"Cloning into 'node_modules/gh-pages/.cache/git@github.com!idongessien!idngessnio.git'...
Warning: Permanently added the RSA host key for IP address '140.82.114.4' to the list of known hosts.
git@github.com: 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! idngessnio@0.1.0 deploy: gh-pages -d build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the idngessnio@0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/idongessien/.npm/_logs/2020-05-17T18_23_28_805Z-debug.log"

Collapse
 
yuribenjamin profile image
Ibrahim Ragab

Setup ssh key bro

Collapse
 
idongcodes profile image
Idong Essien

Forgive me but how do I do that ? I am a newbie here

Thread Thread
 
yuribenjamin profile image
Ibrahim Ragab
Collapse
 
kokilgupta profile image
Kokil Gupta

Hey I'm getting the same error. Did you resolve it?