On Debian unstable using the packaged nodejs I get:
talpa@Hermes ~ $ g2
/usr/lib/node_modules/g2core-api/bin/g2.js:7
let G2coreAPI = require('../');
^^^
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: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 Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
talpa@Hermes ~ $ node --version
v4.8.4
I have also tried the LTS version of nodejs and npm installing g2core-api locally:
talpa@Hermes node-v6.11.1-linux-x64 $ bin/node ./node_modules/.bin/g2
(node:6765) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: x is not defined
The code seems to want a more specific version of nodejs that the README.md file indicates
On Debian unstable using the packaged nodejs I get:
talpa@Hermes ~ $ g2
/usr/lib/node_modules/g2core-api/bin/g2.js:7
let G2coreAPI = require('../');
^^^
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: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 Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
talpa@Hermes ~ $ node --version
v4.8.4
I have also tried the LTS version of nodejs and npm installing g2core-api locally:
talpa@Hermes node-v6.11.1-linux-x64 $ bin/node ./node_modules/.bin/g2
(node:6765) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: x is not defined
The code seems to want a more specific version of nodejs that the README.md file indicates