在尝试执行server.js程序时,我遇到了以下错误:
但是这导致了新的
var app = express();
Type error: object is not a function
at object.<anonymous>
甚至尝试重新安装和更改Express的版本,但问题仍然存在。
npm install
npm uninstall express
npm install express@2.5.9
但是这导致了新的
错误
。fqdn = ~req.url.indexof(' ://')
我使用的是Windows系统,正在使用Node.js版本0.8.4。