Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
150 stars 19 forks source link

Error on start #36

Closed julianng03 closed 5 years ago

julianng03 commented 5 years ago

When I start, a example script

nodejs serverinfo.js This returned:

class TeamSpeak3 extends EventEmitter { ^^^^^

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 Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/home/nodejs/examples/serverinfo.js:1:82) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10)

And i install TS3-NodeJS-Library (npm install ts3-nodejs-library), I have:

npm ERR! Linux 4.4.0-137-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "ts3-nodejs-library" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ENOSELF npm ERR! Refusing to install ts3-nodejs-library as a dependency of itself

Multivit4min commented 5 years ago

Your NodeJS version is outdated, please update to atleast NodeJS 10