Problems initializing initial `ghdid` personal repo on MacOS
See original GitHub issueI wanted to try out github-did on MacOS, and I generally don’t use npm or javascript.
I am encountering problems following the initial instructions on the website at https://github-did.com:
> git clone git@github.com:ChristopherA/ghdid.git
Cloning into 'ghdid'...
Enter passphrase for key '/Users/christophera/.ssh/id_rsa':
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
> cd ghdid
> brew install npm
> npm i -g @github-did/cli
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
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
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/christophera/.npm/_logs/2020-09-11T02_18_26_909Z-debug.log
> ghdid init "Rdacte0sR" https://github.com/ChristopherA/ghdid
zsh: command not found: ghdid
>
Like I’ve found with some other projects like this, my development system system is not npm/javascript centric, so there is probably some unlisted dependency that most npm/javascript developers have but I do not.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
How to Set Up a New GitHub Repo From Your MacBook
Initialise a Repository From Local MacBook (without git clone). Again, this is for the case where you already started a local git repo...
Read more >How to Initialize and push a GitHub Repository in 2021-2022 ...
How to Initialize and push a GitHub Repository in 2021 (Mac only)This video will explain how to get around the new error that...
Read more >Initialize Hard Drive Using macOS Command-Line Tutorial
This is how to initialize a hard drive within macOS using the command-line. If you've encountered errors initializing a hard drive using ...
Read more >Is there a preferred path where I should initialise my Git repo ...
First, there's the local repository. This is a complete repository that lives on your local system. You must have a local repository to...
Read more >Setting up a Git Repository - Visual Studio for Mac
Create a new Git repo at github.com: Create new git repo. Set Repo Name, description, and privacy. Do not initialize Repo.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Library “did-method-key” in version 0.0.2 produces this error, version 0.7.0 works!
Add the end I could create https://github.com/dfriedenberger/ghdid with following workaround, which also can be a solution for the bug.
Fix lib.
Increase version number of did-method-key in package.json
add
await
in src/v2/func/createDIDDoc.js:95 (without await tests (npm run test
) will fail)Install
Use packages/cli for creating ghdid
Use local “lib” in package.json
Create ghdid
debug.log: