Skip to content

not yet supported outside strict mode #19

Description

@staminna

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

> wrtc@0.0.62 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
+ blockchain-cli@1.0.5
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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions