我安装了 tty.js:$ npm install -g tty.js
然后我启动它:$ tty.js
当我调用 http://example.com:8080/我无法打开终端和 http://example.com:8080/socket.io/socket.io.js返回 HTTP 错误 404。
我尝试使用 Node 0.6.19。
我张贴在github但也许来自 stackoverflow 的人可以提供帮助:)
最佳答案
您不应该使用“example.com”,这是一个外部域,而应该使用您自己的机器。尝试将其替换为 localhost,甚至 127.0.0.1,如下所示:
http://localhost:8080
关于javascript - tty.js 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11216540/