-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Gekko Run Error - not yet supported outside strict mode #1604
Comments
I got same problem. |
Fixed it !!! do the following Then sudo apt-get update then run 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 Then run |
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 ! |
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
for Gekko to run
/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)
The text was updated successfully, but these errors were encountered: