升华不';不能使用Javascript代码

升华不';不能使用Javascript代码,javascript,node.js,sublimerepl,Javascript,Node.js,Sublimerepl,最近我从Sublime文本包控件安装了SublimeREPL,没有更改或修改任何其他内容。我已经安装了Node.js,并将其路径添加到path变量中,以便可以从Windows Powershell运行它。 问题是,每当我从sublime运行REPL时,我都会得到以下结果: internal/validators.js:113 throw new ERR_INVALID_ARG_TYPE(name, 'string', value); ^ TypeError [ERR_INVAL

最近我从Sublime文本包控件安装了SublimeREPL,没有更改或修改任何其他内容。我已经安装了Node.js,并将其路径添加到path变量中,以便可以从Windows Powershell运行它。
问题是,每当我从sublime运行REPL时,我都会得到以下结果:

internal/validators.js:113
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "stringToWrite" argument must be of type string. Received type object
    at validateString (internal/validators.js:113:11)
    at REPLServer._writeToOutput (readline.js:321:3)
    at REPLServer.Interface.prompt (readline.js:290:10)
    at REPLServer.displayPrompt (repl.js:973:8)
    at new REPLServer (repl.js:825:8)
    at Object.exports.start (repl.js:843:16)
    at C:\Users\Milad\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:5:20
    at Object.<anonymous> (C:\Users\Milad\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:38:3)
    at Module._compile (internal/modules/cjs/loader.js:971:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1011:10) {
  code: 'ERR_INVALID_ARG_TYPE'
}

***Repl Closed***
internal/validators.js:113
抛出新错误\u无效的\u参数\u类型(名称,'string',值);
^
TypeError[ERR\u INVALID\u ARG\u TYPE]:“stringToWrite”参数的类型必须为string。接收类型对象
在validateString(internal/validators.js:113:11)
在REPLServer.\u writeToOutput(readline.js:321:3)
在REPLServer.Interface.prompt(readline.js:290:10)处
在REPLServer.displayPrompt(repl.js:973:8)处
在新的REPLServer上(repl.js:825:8)
在Object.exports.start(repl.js:843:16)
在C:\Users\Milad\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:5:20
反对。(C:\Users\Milad\AppData\Roaming\Sublime Text 3\Packages\SublimeREPL\config\NodeJS\repl.js:38:3)
at模块编译(内部/modules/cjs/loader.js:971:30)
at Object.Module.\u extensions..js(internal/modules/cjs/loader.js:1011:10){
代码:“错误\无效\参数\类型”
}
***回复关闭***
怎么了?我尝试了所有的.js代码。结果是一样的。我怎样才能解决这个问题

编辑:


我试图通过从
Tools/submiterepl
菜单中选择
Node
来运行repl。另外,我注意到有一个
Build
选项和
buildsystem
菜单,其中不包括
节点
。我不知道它是如何工作的,所以我没有碰它。

我似乎很清楚错误消息:
stringToWrite参数必须是string类型。Received type object
这是什么意思?“每当我从sublime运行REPL时,我都会得到这个”–因此,即使是最简单的JavaScript,如
console.log('test')
也会抛出完全相同的错误?是的,它会抛出相同的错误。