Username: Password:

Author Topic: Error with app.js in Ubuntu Server  (Read 5472 times)

Offline eMadman

  • Rookie
  • *
  • Posts: 4
    • View Profile
Error with app.js in Ubuntu Server
« on: October 14, 2017, 05:04:29 AM »
This is with 5055 on Ubuntu.  I have the bot running correctly using Sjakil's Gui, but if I try to run the Gunbot gui with the node app.js command, I end up getting this errror message:


/home/emad/gunbot/app.js:4
const { StringDecoder } = require('string_decoder');
      ^

SyntaxError: Unexpected token {
    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 Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: Error with app.js in Ubuntu Server
« Reply #1 on: October 14, 2017, 01:22:17 PM »
You need a string:
https://mycrazystuff.com/11347-large_default/borat-mankini-vert.jpg

Hoping it helps  ;D
(weekend post...)