Error: spawn git-upload-pack ENOENT running command git-upload-pack
See original GitHub issueWhen running a fresh install on Win 10, the commit goes well but I get the above error after trying to access the repo:
$ git clone http://localhost:7005/repo-test master
Cloning into 'master'...
fatal: unable to access 'http://localhost:7005/repo-test/': Recv failure: Connection was reset
The error coming from the server:
fetch repo-test
events.js:137
throw er; // Unhandled 'error' event
^
Error: spawn git-upload-pack ENOENT running command git-upload-pack --stateless-rpc --advertise-refs G:\src\web\portal-development\demos\node-git-server-master\example\tmp\repo-test
at ChildProcess.ps.on (G:\src\web\portal-development\demos\node-git-server-master\lib\util.js:90:29)
at ChildProcess.emit (events.js:160:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)
at onErrorNT (internal/child_process.js:389:16)
at process._tickCallback (internal/process/next_tick.js:152:19)
Any pointers as to what is going wrong?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Error: spawn git-upload-pack ENOENT running command git ...
When running a fresh install on Win 10, the commit goes well but I get the above error after trying to access the...
Read more >VS Code Error: spawn git ENOENT - Stack Overflow
I have been using github for desktop until now. I have git version 2.11.0.windows.3 according to git --version command from git shell. but...
Read more >git-upload-pack Documentation - Git
Invoked by git fetch-pack, learns what objects the other side is missing, and sends them after packing. This command is usually not invoked...
Read more >Discussion of How to deploy React App to GitHub Pages
When running the build command for the first time, I got error: ... git-upload-pack: command not found ... Error: spawn git ENOENT
Read more >simple-git - npm
Every command returns ENOENT error message. There are a few potential reasons: git isn't available as a binary for the user running the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The above instructions didn’t work for me. In fact I tried something similar before opening this issue but when I try to do
npm i node-git-server
inside the repo, I get the following error, which is the same error I got when I tried the above steps.@gabrielcsapo You need to amend the documentation to make it clear that users can use the given example either in a fresh node project or an existing one but outside of this repo.
Edit:
I did get this working on a new node project.
Thank you so much @jlxip for helping @netlander with his issue! Really thorough instructions. @netlander did these help? If so I think we could add these to the docs so that anyone else facing this issue can refer back to this for help.