Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Gekko Run Error - not yet supported outside strict mode #1604

Closed
crypto-kid opened this issue Jan 1, 2018 · 5 comments
Closed

Gekko Run Error - not yet supported outside strict mode #1604

crypto-kid opened this issue Jan 1, 2018 · 5 comments

Comments

@crypto-kid
Copy link

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)
@Tazer89
Copy link

Tazer89 commented Jan 1, 2018

I got same problem.

@crypto-kid
Copy link
Author

crypto-kid commented Jan 1, 2018

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 !

@bubbgee
Copy link

bubbgee commented Jan 2, 2018

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

@seanh1414
Copy link

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

@Tr0j4n9
Copy link

Tr0j4n9 commented Mar 25, 2018

Thanks, @crypto-kid !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants