In net bean ho installato node.js pulgin.Ma il mio programma di nodo di esempio non funziona.Im ottenere errore. Questo è il mio codice di esempioCome eseguire il file node.js in net bean?
var http = require("http");
http.createServer(function (req, res) {
res.writeHead(200, {"Content-Type": "text/plain"});
res.end("Hai! welcome to node.js...!\n");
}).listen(3030, "localhost");
console.log("Server running at http://127.0.0.1:3030/");/*
Durante l'esecuzione di quanto sopra program.Im ottenendo seguente errore.
module.js:340
throw err;
^
Error: Cannot find module 'C:\Program Files\NetBeans 7.0.1\hello.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:903:3
Ma il programma di cui sopra funziona dal terminale.
hai fatto questo lavoro? – vels4j