Error while installing blockstack-cli as part of the Blockstack test net getting started guide


I followed these steps as per the getting started guide

git clone
cd blockstack.js
git checkout -b feature/stack-transactions
npm install
npm run build
npm link 
cd ..
git clone
cd cli-blockstack
npm link blockstack
npm install

The last command i.e. npm install fails with the following error:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for blockstack@^19.0.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'blockstack-cli'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-08-24T06_53_23_011Z-debug.log

So I tried working around this with:
npm install ../blockstack.js
followed by
npm install
This seems to go through successfully.
But after this, the blockstack-cli is not available in PATH, like how it appears to be in the video
Am I missing something here ?


You need to run sudo npm install -g or sudo npm link to install the blockstack-cli globally.