1
從命令行console.trace()的輸出,輸入console.trace()
會吐出:瞭解節點
at repl:1:10
at REPLServer.eval (repl.js:80:21)
at Interface.<anonymous> (repl.js:182:12)
at Interface.emit (events.js:67:17)
at Interface._onLine (readline.js:162:10)
at Interface._line (readline.js:426:8)
at Interface._ttyWrite (readline.js:603:14)
at ReadStream.<anonymous> (readline.js:82:12)
at ReadStream.emit (events.js:88:20)
at ReadStream._emitKey (tty.js:309:10)
有人能迅速走在我低谷這個爛攤子?
謝謝。第一行是什麼:'at repl:1:10'? – Randomblue
repl是您調用'eval'的JavaScript文件的名稱。因此,node.js中的新範圍將被命名爲您正在評估的文件。這可能是你的eval腳本的第一行,第10行拋出異常,但這些結果可能是不可預知的,所以它可能是其他地方。 –