【问题标题】:How to run scripted editor on Windows 7如何在 Windows 7 上运行脚本编辑器
【发布时间】:2012-10-30 12:47:45
【问题描述】:

我试图在 Windows XP 上运行脚本编辑器并得到 无法连接到 localhost:7261。故障排除部分有相同的问题here。建议是延迟运行脚本以启动节点。我在 bin/scripted.bat 中使用以下批处理脚本延迟了它

start /MIN cmd /c node %rootdir%\server\scripted.js^>^>scripted.log
timeout /t 30
start "" "http://localhost:7261/editor.html?%patharg%"

我遇到同样的错误无法连接到 localhost:7261

如何配置脚本在节点运行完成后运行?

我使用脚本版本 0.2.0 和节点版本 0.8.0-x86。

【问题讨论】:

标签: javascript windows-7 batch-file editor


【解决方案1】:

浏览器通常在节点服务器运行之前启动 - 稍等片刻然后按刷新。

如果失败,您会发现节点没有运行。所以你要么没有安装 nodeJS,它不在你的 PATH 上,要么它不是一个足够新的版本。

另外,检查与您运行 scr 相同的文件夹中的 scripted.log。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-07
    • 2021-09-28
    • 1970-01-01
    • 2014-07-13
    相关资源
    最近更新 更多