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
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.
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
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 !
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 !