試圖得到一個基本的節點快速的Hello World應用程序在我的本地運行,但得到一個找不到網頁瀏覽器錯誤:快速應用程序在本地主機上找不到8080
var express = require('express'),
app = express();
app.get('/', function (req, res) {
res.send("Hello, World!");
});
app.get('*', function (req, res) {
res.send("Page not found", 404);
});
app.listen(8080);
console.log("Express server started!");
當我運行應用程序時,似乎有在終端
但是沒有錯誤在http://localhost:8080
我得到這個錯誤
GET http://localhost:8080/ net::ERR_EMPTY_RESPONSE