How does blockchain really work? I built an app to show you.
Sean Han
13.7K58

Just downloaded Node.js and blockchain-cli to my Ubuntu-Mate 64bit desktop. So far, so good.

09/06: “sudo apt-get install npm” completed without errors. Then coding a really simple hello.js, and running “node hello.js” confirmed that node.js was installed correctly. After that, I could “sudo npm install blockchain-cli -g” . But when I ran “blockchain”, that aborted with the following error:

/usr/local/lib/node_modules/blockchain-cli/lib/blockchain/index.js:7
class Blockchain {
^^^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
 at exports.runInThisContext (vm.js:53:16)
 at Module._compile (module.js:373:25)
 at Object.Module._extensions..js (module.js:416:10)
 at Module.load (module.js:343:32)
 at Function.Module._load (module.js:300:12)
 at Module.require (module.js:353:17)
 at require (internal/module.js:12:17)
 at Object.<anonymous> (/usr/local/lib/node_modules/blockchain-cli/lib/cli/command/list-blockchain.js:1:82)
 at Module._compile (module.js:409:26)resulted in errors.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.