Open bikebot opened 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
+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.
When I try to install github-did, I get the following error message:
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