verify node.js version before starting ucoind
Created by: Sylvain303
Example of fail start, after a VM reboot. (I forgot to switch to the correct node.js version)
Useful for non friendly node.js peoples:
/home/ucoin/ucoinsrc/bin/ucoind:129
return server.disconnect().catch(() => null);
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
ucoin@debian-jessie:~/ucoinsrc$ node --version
v0.10.29
Fix, for me:
nvm use 0.12
Now using node v0.12.9 (npm v2.14.9)
starting OK…
node --harmony bin/ucoind start