JerryWm / Stratum-Proxy-XMR

Stratum proxy
20 stars 19 forks source link

i can't run it #5

Open velicumugur opened 6 years ago

velicumugur commented 6 years ago

root@proxy:~/Stratum-Proxy-XMR/src# node ./app/ /root/Stratum-Proxy-XMR/src/app/main.js:28 let config = null; ^^^

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 root@proxy:~/Stratum-Proxy-XMR/src#

JerryWm commented 6 years ago

Install the latest version of nodejs

velicumugur commented 6 years ago

i'm user vacarosie200 on bitcontalk , i just setup a new vps ,, it's latest nodejs ... ubuntu 16.04

velicumugur commented 6 years ago

root@proxy:~/Stratum-Proxy-XMR/src# apt install nodejs Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1). nodejs set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. root@proxy:~/Stratum-Proxy-XMR/src# node The program 'node' is currently not installed. You can install it by typing: apt install nodejs-legacy root@proxy:~/Stratum-Proxy-XMR/src# The program 'node' is currently not installed No command 'The' found, did you mean: Command 'the' from package 'the' (universe) The: command not found root@proxy:~/Stratum-Proxy-XMR/src# nodejs ./app/ /root/Stratum-Proxy-XMR/src/app/main.js:28 let config = null; ^^^

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 root@proxy:~/Stratum-Proxy-XMR/src#

JerryWm commented 6 years ago

Install the latest version. Here it is written as https://nodejs.org/en/download/package-manager/ . You most likely put packages with ubuntu, they are old.

naufan385 commented 6 years ago

On raspberry pi ubuntu is work Install latest nodejs(9.4.0). Thank you.