blockchain-cli
blockchain-cli copied to clipboard
not yet supported outside strict mode
Hi
$ npm install blockchain-cli -g
/Users/jorge/.nvm/versions/node/v4.8.0/bin/blockchain -> /Users/jorge/.nvm/versions/node/v4.8.0/lib/node_modules/blockchain-cli/main.js
> [email protected] install /Users/jorge/.nvm/versions/node/v4.8.0/lib/node_modules/blockchain-cli/node_modules/wrtc
> node-pre-gyp install --fallback-to-build
[wrtc] Success: "/Users/jorge/.nvm/versions/node/v4.8.0/lib/node_modules/blockchain-cli/node_modules/wrtc/build/wrtc/v0.0.62/Release/node-v46-darwin-x64/wrtc.node" is installed via remote
+ [email protected]
added 244 packages in 24.765s
Jorges-MBP:website jorge$ blockchain
/Users/jorge/.nvm/versions/node/v4.8.0/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> (/Users/jorge/.nvm/versions/node/v4.8.0/lib/node_modules/blockchain-cli/lib/cli/command/list-blockchain.js:1:82)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
Hi, follow this link to download a problem-free version. https://github.com/anders94/blockchain-demo/