-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"git-upload-pack" command not found with React v16.4.2 #10
Comments
Hi @drewkiimon, I'll paste the error message here to facilitate future searches through this repo's issues:
I don't recall having seen that error message before. I interpret the error message to mean whatever thing happens to be looking for a command named My thoughts:
|
So it because the git. Maybe reinstall it may work ??? |
@dangpro-1210 @gitname It turns out that since I'm using CMDER it uses it's own pre-installed version of Git. I had to reinstall git, add the path to git-upload-pack, and then restart my computer to get it to work. It's just weird since it worked in the past and I could see my React projects online. |
I have the same error with all consoles. VS Code Integrated Terminal, Hyper and CMDER.
|
As @drewkiimon said, if it doesn't work, it 'cause the git it self. So the way to fix it is to reinstall it and add the git-upload-pack's path. |
Hi, if you want resolve this mistake without efforts just try to do "npm run deploy" from git bash (not from cmder windows terminal) |
Thank you @ieopvl, your solution worked for me. |
Thank you @ieopvl |
Thanks @khang-nd , worked |
thankyou so so much @ieopvl . You're a savior. |
@ieopvl Thanks dude. |
@ieopvl Thank you, running "npm run deploy" from "git bash terminal" works for React v17.0.1, too. |
@ieopvl my luscious head of hair thanks you, (since I no longer have to spend hours pulling them out figuring how to 'fix' this) |
Seems like things have been sorted out! |
Thanks |
@ieopvl thank you it worked |
For some reason, once in a blue moon I won't be able to run npm run deploy because when attempting to do "gh-pages -d build" it cannot find git-upload-pack. If I give it a day or two, then come back and try to deploy it works perfectly.
Is there a fix to this? Not sure how to push my React project to github pages when it keeps giving me these errors.
Edit: 8-17-18 @ 1 PM
It seems that my old projects running React v16.4.1 upload perfectly fine. However, my most recent project is using React v16.4.2. Anyone sure if that could be the reason why it isn't working?
The text was updated successfully, but these errors were encountered: