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! email@example.com deploy: `gh-pages -b master -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 above.
How can I make it work?
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.
I changed the script and I receive the same error
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?
I teammate deployed the project, but now we got updated version and I wanted to deploy.
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!
Reinstall git bash. Chuse 3-th option in adjusing your PATH
enviroment (Use git optional Unix tools from the Command Promount). Thats all))