iliakan / plunk

Utility to post to plnkr.co
19 stars 14 forks source link

Yield error on run #20

Open abalter opened 7 years ago

abalter commented 7 years ago

I'm running Ubuntu 17.04.

I installed with sudo npm install -g plunk

balter@balterbox:~/startbootstrap-agency$ plunk
/usr/local/lib/node_modules/plunk/bin/plunk:19
  let plunkContent = yield* updateDir({
  ^^^

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:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
Tiaryn commented 7 years ago

Most likely your node.js package is not up to date.

source: https://stackoverflow.com/questions/41960142/block-scoped-declarations-not-yet-supported-outside-strict-mode-laravel-mix