github-did icon indicating copy to clipboard operation
github-did copied to clipboard

git clone failed

Open bikebot opened this issue 3 years ago • 8 comments

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

bikebot avatar Mar 27 '21 13:03 bikebot

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

CluEleSsUK avatar Apr 26 '21 08:04 CluEleSsUK

+1

camfindlay avatar Jul 19 '21 03:07 camfindlay

+1

BenjaminMoe avatar Aug 16 '21 20:08 BenjaminMoe

+1

tonyimpervious avatar Sep 14 '21 14:09 tonyimpervious

+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

billk97 avatar Dec 28 '21 23:12 billk97

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

jdboris avatar Dec 29 '21 14:12 jdboris

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

Thaoden avatar May 18 '22 06:05 Thaoden

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.

jruizaranguren avatar Aug 19 '22 13:08 jruizaranguren