Problem with deploying React project to GitHub Pages

Problem with deploying React project to GitHub Pages
0

#1

Hello,

I am a contributor on Chingu-Voyage project repo
When I run npm run deploy I get this error:

git-upload-pack '.': git-upload-pack: command not found
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! budget-app@0.1.0 deploy: `gh-pages -b master -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the budget-app@0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

How can I make it work?


#2

You need to change the script you are running in your package.json from gh-pages -b master -d build to gh-pages -b master -d public I think, because your directory is called public not build.


#3

I changed the script and I receive the same error :frowning:


#4

Hmm, that was my best idea, not sure then. Out of curiosity was it working previously then stopped or is this the first time you’ve tried to deploy?


#5

I teammate deployed the project, but now we got updated version and I wanted to deploy.


#6

My only other guess is that you don’t have the correct access rights because it says : Please make sure you have the correct access rights and the repository exists. I’m really not sure though, hopefully someone more qualified can get your problem sorted. Good luck!