github-did
github-did copied to clipboard
git clone failed
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
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
+1
+1
+1
+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

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