This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Description
Describe the bug
I was trying out the Clarity Hello World tutorial (https://docs.blockstack.org/core/smart/tutorial.html#get-familiar-with-cli-optional) and ran these commands:
sudo npm install -g "https://github.com/blockstack/cli-blockstack#feature/stacks-2.0-tx"
blockstack make_keychain -t > new_keychain.txt
While the installation seems to work fine, the make_keychain errors out with a MODULE_NOT_FOUND:
Alexanders-MacBook-Pro:new-cli alexandergraebe$ blockstack make_keychain -t > new_keychain.txt
internal/modules/cjs/loader.js:985
throw err;
^
Error: Cannot find module '../lib/index'
Require stack:
- /usr/local/lib/node_modules/blockstack-cli/cmd/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/usr/local/lib/node_modules/blockstack-cli/cmd/index.js:3:1)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/local/lib/node_modules/blockstack-cli/cmd/index.js' ]