遇到一个problemin我的第一个node.js代码,我不明白什么地方出错了

我是新的node.js和遇到了我的第一个代码中的问题:===>

var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(8080); 

它会抛出这个错误:===== >>

 events.js:182 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE :::8080 at Object._errnoException (util.js:1041:11) at _exceptionWithHostPort (util.js:1064:20) at Server.setupListenHandle [as _listen2] (net.js:1322:14) at listenInCluster (net.js:1370:12) at Server.listen (net.js:1466:7) at Object.<anonymous> (C:\Users\Tuladhar\nodeJS.js:6:4) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) 

谁能帮帮我吗

错误Error: listen EADDRINUSE :::8080意味着一些其他进程已经在使用端口8080.切换您的端口,然后再试一次。

那么如果有人遇到这个问题,打开你的节点命令提示符并像这样安装http-server:npm install http-server -g

至less我的工作是通过应用这种方法。