TypeError При запуске CoffeeScript REPL - PullRequest
0 голосов
/ 20 марта 2019

Я набираю coffee, чтобы ввести REPL, и набираю a=5, затем выдается ошибка, и REPL завершается. Я гуглил за это, но ничего не получил. Я новичок в кофе и JS, спасибо за помощь.

user@HP-2-1:~$ coffee
coffee> (node:10793) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Expression assignment to _ now disabled.
undefined
coffee> a = 5
5
coffee> readline.js:1032
            throw err;
            ^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
  at maybeCallback (fs.js:129:9)
  at Object.write (fs.js:536:14)
  at REPLServer.<anonymous> (/usr/lib/coffee-script/lib/coffee-script/repl.js:142:12)
  at REPLServer.emit (events.js:194:15)
  at REPLServer.EventEmitter.emit (domain.js:441:20)
  at REPLServer.Interface._onLine (readline.js:290:10)
  at REPLServer.Interface._line (readline.js:638:8)
  at REPLServer.Interface._ttyWrite (readline.js:919:14)
  at REPLServer.self._ttyWrite (repl.js:712:7)
  at ReadStream.onkeypress (readline.js:168:10)
  at ReadStream.emit (events.js:194:15)
  at ReadStream.EventEmitter.emit (domain.js:441:20)
  at emitKeys (internal/readline.js:424:14)
  at emitKeys.next (<anonymous>:null:null)
  at ReadStream.onData (readline.js:1022:36)
  at ReadStream.emit (events.js:189:13)
  at ReadStream.EventEmitter.emit (domain.js:441:20)
  at addChunk (_stream_readable.js:284:12)
  at readableAddChunk (_stream_readable.js:265:11)
  at ReadStream.Readable.push (_stream_readable.js:220:10)
  at TTY.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

Я использую Ubuntu 16.04, версия nodejs v10.15.2, версия CoffeeScript 1.9.3.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...