Ask coding questions

← Back to all posts
Error when trying to use command: "node ." and "node index.js"
Minionguyjpro (0)

When i try to launch an bot for Minecraft, i get this when i use the start command:

  _events: [Object: null prototype] {
    error: [Function],
    inject_allowed: [Function: bound onceWrapper] {
      listener: [Function: onInjectAllowed]
    },
    login: [Function],
    time: [Function],
    spawn: [Function],
    death: [Function]
  },
  _eventsCount: 6,
  _maxListeners: undefined,
  _client: Client {
    _events: [Object: null prototype] {
      connect: [Array],
      keep_alive: [Function: onKeepAlive],
      end: [Array],
      encryption_begin: [Function],
      success: [Function],
      compress: [Function],
      set_compression: [Function: onCompressionRequest],
      custom_payload: [Function: onCustomPayload],
      disconnect: [Function],
      error: [Function],
      connect_allowed: [Function]
    },
    _eventsCount: 11,
    _maxListeners: undefined,
    customPackets: undefined,
    version: '1.16.4',
    isServer: false,
    splitter: Splitter {
      _readableState: [ReadableState],
      readable: true,
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      _writableState: [WritableState],
      writable: true,
      allowHalfOpen: true,
      _transformState: [Object],
      buffer: <Buffer >,
      recognizeLegacyPing: true,
      [Symbol(kCapture)]: false
    },
    packetsToParse: {},
    compressor: null,
    framer: Framer {
      _readableState: [ReadableState],
      readable: true,
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      _writableState: [WritableState],
      writable: true,
      allowHalfOpen: true,
      _transformState: [Object],
      [Symbol(kCapture)]: false
    },
    cipher: null,
    decipher: null,
    decompressor: null,
    ended: true,
    latency: 0,
    hideErrors: false,
    closeTimer: null,
    protocolState: 'handshaking',
    serializer: Serializer {
      _readableState: [ReadableState],
      readable: true,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _writableState: [WritableState],
      writable: true,
      allowHalfOpen: true,
      _transformState: [Object],
      proto: [CompiledProtodef],
      mainType: 'packet',
      queue: <Buffer >,
      [Symbol(kCapture)]: false
    },
    deserializer: FullPacketParser {
      _readableState: [ReadableState],
      readable: true,
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      _writableState: [WritableState],
      writable: true,
      allowHalfOpen: true,
      _transformState: [Object],
      proto: [CompiledProtodef],
      mainType: 'packet',
      noErrorLogging: false,
      [Symbol(kCapture)]: false
    },
    wait_connect: true,
    registerChannel: [Function: registerChannel],
    unregisterChannel: [Function: unregisterChannel],
    writeChannel: [Function: writeChannel],
    [Symbol(kCapture)]: false
  },
  loadPlugin: [Function: loadPlugin],
  loadPlugins: [Function: loadPlugins],
  hasPlugin: [Function: hasPlugin],
  [Symbol(kCapture)]: false
} 
Comments
hotnewtop
Minionguyjpro (0)

OK, but how to make it work?

Minionguyjpro (0)

How to make it work? It worked when i tested it on my pc.

InvisibleOne (3226)

That isn't an error, I just don't think the code in your repl is outputting anything.