decentralized-identity / github-did

Decentralized Identity with Github
https://github-did.com
Apache License 2.0
140 stars 32 forks source link

git clone failed #85

Open bikebot opened 3 years ago

bikebot commented 3 years ago

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://git@github.com/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 commented 3 years ago

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 commented 3 years ago

+1

BenjaminMoe commented 3 years ago

+1

tonyimpervious commented 3 years ago

+1

billk97 commented 2 years ago

+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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.