3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
396 stars 401 forks source link

issue setup #84

Open lightrain125 opened 6 years ago

lightrain125 commented 6 years ago

Hello, i setup but error.

root@vultr:~# cd ~/opentrade/server root@vultr:~/opentrade/server# sudo node main.js sudo: node: command not found root@vultr:~/opentrade/server#

Please help me. thanks

jonn4y commented 6 years ago

What steps have you taken to get this far, what is the full error you are getting?

Have you installed node first in the opentrade dir?

lightrain125 commented 6 years ago

i complete step

udo apt-get update sudo apt-get install build-essential libssl-dev curl -y curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh bash install_nvm.sh sudo reboot

nvm install 6.0.0

git clone https://github.com/3s3s/opentrade.git cd opentrade

sudo npm install

mkdir ~/opentrade/server/database

lightrain125 commented 6 years ago

I have not installed the first node.

3s3s commented 6 years ago

Hi you can try "nodejs main.js" instead, but VULTR is bad provider for OpenTrade anyway... Vultr is blocking outgoing SMTP connections so OpenTrade will not to send emails and it will be impossible to complete registration

lightrain125 commented 6 years ago

Help me

/root/opentrade/node_modules/sendmail/sendmail.js:1 (function (exports, require, module, filename, dirname) { const {createConnection} = require('net'); ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/root/opentrade/server/modules/mailer.js:4:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)

Tr0j4n9 commented 6 years ago

Try re-cloning with a new update. If that does not work, contact me on my Discord: https://discord.gg/fEYMcvX

cryptonana commented 5 years ago

dont use sudo without sudo run command node main.js and if you see these errors

/root/opentrade/node_modules/sendmail/sendmail.js:1 (function (exports, require, module, filename, dirname) { const {createConnection} = require('net'); ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/root/opentrade/server/modules/mailer.js:4:18) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)

run command killall node

and after run nohup node main.js &

go browser

diakas commented 5 years ago

neded nvm install 8.0 - 8.12