Meow Posted October 2, 2017 Report Posted October 2, 2017 /node_modules/steamcommunity/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5const 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 ? Quote
Frohser Posted October 2, 2017 Report Posted October 2, 2017 Update your node.js using this tip. Quote
Meow Posted October 2, 2017 Author Report Posted October 2, 2017 Update your node.js using this tip.i did this and its still the same Quote
Frohser Posted October 2, 2017 Report Posted October 2, 2017 i did this and its still the sameWhat version node.js do you have? Quote
Meow Posted October 2, 2017 Author Report Posted October 2, 2017 (edited) 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:6let url^^^SyntaxError: Unexpected strict mode reserved wordat 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 October 2, 2017 by Meow Quote
Meow Posted October 2, 2017 Author Report Posted October 2, 2017 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:44throw 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) 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.