2014-02-28 41 views
0

我已經啓動了一個節點js項目,到目前爲止,我已將我的html頁面/ css/etc包含在名爲'html'的文件夾中。我有npm-也安裝了相關模塊。但在啓動過程中會顯示一些錯誤消息。 plz幫助我out.Thnx發生節點Js -Exception執行命令行

項目層次結構

enter image description here

squadra-server.njs

var express = require('express'); 
    var app = express.createServer(); 
    app.get('/', function(req, res){ 
     res.send('Hello World'); 
    }); 
    app.configure(function() { 
     app.use(express.static(__dirname + '/html')); 
    }) 

    app.listen(8000); 

錯誤味精

enter image description here

回答

1

您必須在運行配置中配置node.exe的路徑。應該不是什麼大問題...