Gekko: Gekko Run Error - not yet supported outside strict mode

Created on 1 Jan 2018  路  5Comments  路  Source: askmike/gekko

Note: for support questions, please join our Discord server

  • I'm submitting a ...
    [* ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository

  • Action taken (what you did)
    Installed Gekko for Bash on windows 10

when I go to run gekko using

Node gekko --ui
or
nodejs gekko --ui

I get the following error

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

please note that in order to get a successful install I had to used the following symlink fix
sudo ln -sT /usr/bin/nodejs /usr/bin/node

  • Expected result (what you hoped would happen)

for Gekko to run

  • Actual result (unexpected outcome)
    /root/gekko/core/error.js:3
    let RetryError = function(message) {
    ^^^

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 Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/root/gekko/core/util.js:8:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

Most helpful comment

Fixed it !!!

do the following
sudo ln -sf /usr/local/n/versions/node/7.5/bin/node /usr/bin/node

Then

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

then run
cd Gekko
node gekko --ui

then open http://localhost:3000. in your browser

Now this has worked for me so only hope it works for you !

All 5 comments

I got same problem.

Fixed it !!!

do the following
sudo ln -sf /usr/local/n/versions/node/7.5/bin/node /usr/bin/node

Then

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential

then run
cd Gekko
node gekko --ui

then open http://localhost:3000. in your browser

Now this has worked for me so only hope it works for you !

Basically you need to ensure that the node.js version on your OS is node.js ver 6 and above.

On ubuntu, I did the following:

sudo apt-get install npm
npm install n -g
sudo n latest

Then run
nodejs gekko --ui

you can also use NVM which i've used quite a bit ( because I have other projects that depend on different versions) https://github.com/creationix/nvm/blob/master/README.md

Thanks, @crypto-kid !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yacindou picture yacindou  路  3Comments

GiordanoFlorian picture GiordanoFlorian  路  4Comments

burtnderson picture burtnderson  路  5Comments

laurentgrangeau picture laurentgrangeau  路  6Comments

belemaire picture belemaire  路  5Comments