【发布时间】:2014-12-09 09:40:49
【问题描述】:
尝试处理一些在其他计算机上没有问题的代码。这个问题似乎是特定于我的笔记本电脑而不是其他计算机。即使是“hello world”应用程序也只会返回一个调试 gif。
repository folder> node app.js
Express Server Listening on port 3000
GET / 200 1000.00 ms - -
这是交付给浏览器的代码,而不是我的代码
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width, minimum-scale=0.1" name="viewport">
<title>127.0.0.1 (1×1)</title>
<style type="text/css">
</style>
</head>
<body style="margin: 0px;">
<img src="http://127.0.0.1:3000/" style="-webkit-user-select: none">
</body>
</html>
包括故障排除:
- 以管理员身份运行 cmd
- 重新安装 Node.js
- 删除了 appdata/roaming 中的临时 npm 和 npm 缓存文件夹
chrome 或 Firefox 中的开发工具没有错误
【问题讨论】:
标签: javascript windows node.js debugging gif