2017-01-16 2 views
-1

내 Node.js Steam-Bot이 작동하지 않습니다. 항상 그를 시작하려고하면 구문 오류가 발생합니다 :Node.js SteamBot이 작동하지 않습니다.

/root/bot/node_modules/steam-tradeoffer-manager/lib/index.js:3 
const SteamCommunity = require('steamcommunity'); 
^^^^^ 
SyntaxError: Use of const in strict mode. 
    at exports.runInThisContext (vm.js:73:16) 
    at Module._compile (module.js:443:25) 
    at Object.Module._extensions..js (module.js:478:10) 
    at Module.load (module.js:355:32) 
    at Function.Module._load (module.js:310:12) 
    at Module.require (module.js:365:17) 
    at require (module.js:384:17) 
    at Object.<anonymous> (/root/bot/tradebot.js:20:25) 
    at Module._compile (module.js:460:26) 
    at Object.Module._extensions..js (module.js:478:10) 

Iam은 데비안 8, 노드 버전 0.12를 사용합니다.

감사합니다.

+0

제쳐두고 자신의 호의를 베푸고 nodejs를 업그레이드하십시오 ... 현재 버전은 v7.4입니다. https://nodejs.org/en/download/current/ –

답변

1

오류가이 모든 것을 말합니다. constvar으로 대체하십시오. 또한 주석에 언급 된대로 nodeJS 버전을 업데이트해야합니다. 이것은 정말로 중요합니다.

관련 문제