基于Eclipse4.4 M4预览版的Enide Studio2014
新建->Node.js项目。
hello-world-server.njs如下:
var http = require('http');
http.createServer(function handler(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');1个问题:为什么hello-world-server.njs不是hello-world-server.js。
JS和NJS有什么区别?
2问题:即时通信运行节点应用程序
Console show:
org.nodeclipse.debug.launch.LaunchShortcut
node E:\work\node_eclipse_w\k\hello-world-server.njs --tea-pot-mode 但我不能访问页面“127.0.0.1:1337”
结束:谢谢。
发布于 2014-10-10 14:29:57
阅读更新后的intro http://www.nodeclipse.org/enide/studio/2014/
简而言之,您需要在最近的Eclipse中安装Enide Studio2014插件(v0.17)。现在您使用的是Nodeclipse的旧版本0.11
您还可以将Eclipse和Nodeclipse (使Enide Studio2014)更新到最新版本。
https://stackoverflow.com/questions/25903399
复制相似问题