Jump to content
McKay Development

Couldn't Start Bot


Meow

Recommended Posts

/node_modules/steamcommunity/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
const Hoek = require('hoek');
^^^^^
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> (/home/Bot/node_modules/steamcommunity/node_modules/request/node_modules/hawk/lib/index.js:5:33)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)

 

 

i get this error when i try to start my bot. can anyone help me please ?

Link to comment
Share on other sites

v 0.12.18

 

the thing is I'm using Google Cloud Platform and it doesnt give me full access to my sftp. and whenever i want to install node modules in bot folder, it gets installed in other directory. 

 

when i use sudo npm cache clean -f

/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:6
let url
^^^
SyntaxError: Unexpected strict mode reserved word
at Module._compile (module.js:437:25)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/access.js:5:11)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)

Edited by Meow
Link to comment
Share on other sites

now i've updated node to v8.6.0 and npm 5.3.0 and now  i get different error 

 

Bot/node_modules/log4js/lib/configuration.js:44
throw new Error(
^

Error: Problem with log4js configuration: ({ appenders:
[ { type: 'console' },
{ type: 'file', filename: 'logs/bot_undefined.log' } ] }) - must have a property "appenders" of type object.
at tests.forEach (/home/Bot/node_modules/log4js/lib/configuration.js:44:15)
at Array.forEach (<anonymous>)
at Configuration.throwExceptionIf (/home/Bot/node_modules/log4js/lib/configuration.js:42:11)
at new Configuration (/home/Bot/node_modules/log4js/lib/configuration.js:205:10)
at Object.configure (/home/Bot/node_modules/log4js/lib/log4js.js:201:12)
at Object.<anonymous> (/home/Bot/bot.js:18:8)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...