Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

git clone failed #85

Open
bikebot opened this issue Mar 27, 2021 · 8 comments
Open

git clone failed #85

bikebot opened this issue Mar 27, 2021 · 8 comments

Comments

@bikebot
Copy link

bikebot commented Mar 27, 2021

When I try to install github-did, I get the following error message:

andii@AnduntuS:~/projects/DID$ npm i -g @github-did/cli
npm ERR! code 128
npm ERR! command failed
npm ERR! command git clone --mirror -q ssh://[email protected]/digitalbazaar/x25519-key-pair.git /home/andii/.npm/_cacache/tmp/git-clone-b9e8ca13/.git
npm ERR! fatal: destination path '/home/andii/.npm/_cacache/tmp/git-clone-b9e8ca13/.git' already exists and is not an empty directory.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/andii/.npm/_logs/2021-03-27T13_46_53_614Z-debug.log

However, /home/andii/.npm/_cacache/tmp/ is in fact empty.
2021-03-27T13_46_53_614Z-debug.log

This is on Ubuntu 20.04.2 LTS, git version 2.25.1, npm 7.7.5

@CluEleSsUK
Copy link

CluEleSsUK commented Apr 26, 2021

I have the same problem on MacOS Big Sur:
MacOS 11.2.3
git 2.24.3
node v15.12.0
npm 7.11.0

@camfindlay
Copy link

+1

1 similar comment
@BenjaminMoe
Copy link

+1

@tonyimpervious
Copy link

+1

@billk97
Copy link

billk97 commented Dec 28, 2021

+1
Os: Alpine Linux v3.12
node: v12.22.6
npm: 6.14.15
git: 2.26.2
error:

npm ERR! code 1
npm ERR! Command failed: git checkout initial
npm ERR! error: pathspec 'initial' did not match any file(s) known to git

image

@jdboris
Copy link

jdboris commented Dec 29, 2021

I don't know the context but in case this helps, I was getting this error when trying to use npm to install a github repo, but using a non-existent branch name. Correcting the branch name fixed the problem

@Thaoden
Copy link

Thaoden commented May 18, 2022

Are there any updates on this? I'm running into that same error on Windows 20H2:

E:\VSProjects> git --version
git version 2.36.1.windows.1
E:\VSProjects> node -v
v18.2.0
E:\VSProjects> npm -v
8.10.0
E:\VSProjects> npm i -g @github-did/cli
npm ERR! code 1
npm ERR! The git reference could not be found
npm ERR! command git --no-replace-objects checkout initial
npm ERR! error: pathspec 'initial' did not match any file(s) known to git

npm ERR! A complete log of this run can be found in:
npm ERR!     <...>\_logs\2022-05-18T06_56_19_044Z-debug-0.log

@jruizaranguren
Copy link

jruizaranguren commented Aug 19, 2022

Did anybody succeed running this command with a particular set of os, node, npm versions?
We could build a docker image with those fixed dependencies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants