Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i can't run it #5

Open
velicumugur opened this issue Jan 3, 2018 · 5 comments
Open

i can't run it #5

velicumugur opened this issue Jan 3, 2018 · 5 comments

Comments

@velicumugur
Copy link

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
Copy link
Owner

JerryWm commented Jan 3, 2018

Install the latest version of nodejs

@velicumugur
Copy link
Author

velicumugur commented Jan 3, 2018

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

@velicumugur
Copy link
Author

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
Copy link
Owner

JerryWm commented Jan 3, 2018

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.

@JerryWm JerryWm closed this as completed Jan 3, 2018
@JerryWm JerryWm reopened this Jan 3, 2018
@naufan385
Copy link

naufan385 commented Jan 14, 2018

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

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

No branches or pull requests

3 participants