question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: spawn git-upload-pack ENOENT running command git-upload-pack

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
netlandercommented, Mar 6, 2018

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.

npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "node-git-server" under a package
npm ERR! also called "node-git-server". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\yaseen\AppData\Roaming\npm-cache\_logs\2018-03-06T13_34_56_108Z-debug.log

@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.

1reaction
gabrielcsapocommented, Mar 5, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found