Meow Posted June 2, 2017 Report Posted June 2, 2017 Hello everyone, previously i made few steam bots without having any issue but this time whenever i try to run the bot with node then i get this error :/home/bot/node_modules/steamcommunity/node_modules/steam-totp/nod[email protected]<script data-cfhash='f9e31' type="text/javascript">/* */</script>/stats-reporter/index.js:9let g_StartupTimestamp = Math.floor(Date.now() / 1000); ^^^^^^^^^^^^^^^^^^SyntaxError: Unexpected identifier 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> (/home/bot/node_modules/steamcommunity/node_modules/steam-totp/index.js:1:63) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) can anyone please help me ? thank you Quote
Meow Posted June 2, 2017 Author Report Posted June 2, 2017 node v0.12.18 problem is with the version i think. im running it on Debian 7.11 x64 bit server. so do i need to install version 0.10 to fix it ? Quote
Meow Posted June 3, 2017 Author Report Posted June 3, 2017 (edited) im able to install v0.10 but version 6 im just not able to install. it remains version 10 only. can you please get me the command to downgrade it please ? or can you tell me a way to compress my previous bot node_modules folder from filezilla and i can replace it with new one ? i tried few compressing method from google but it didnt work. Edited June 3, 2017 by Meow Quote
Dr. McKay Posted June 3, 2017 Report Posted June 3, 2017 Version 6 is not a downgrade. It's 6.0.0, which is a couple years newer than when 0.10 first came out. Later versions of node typically aren't available in repositories. You'll need to install it yourself. If you're on Ubuntu x64, you can use this script: https://www.doctormckay.com/installnode.sh It probably works on other distros too (x64 only) but I've only tested it on Ubuntu. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.