3

我正在尝试在 Windows XP 上运行脚本编辑器,但无法连接到 localhost:7261。故障排除部分也有同样的问题。建议是延迟运行脚本以启动节点。我在 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。

4

1 回答 1

1

Often times the browser starts before the node server is running - just wait a second and press refresh.

If that fails, you'll find node isn't running. So you either don't have nodeJS installed, it's not on your PATH or it's not a new enough version.

Also, check scripted.log in the same folder as you ran scr from.

于 2012-12-15T18:44:50.023 回答