Im trying to run my first shttp-server with node.js, the problem is that I get on the terminal:
/sandbox/Node_js/server.js node server.js
-bash: /Users/yoniPacheko/WebstormProjects/sandbox/Node_js/server.js: Permission denied
this is the simple code:
var http = require ("http");
http.createServer(function(request, response){
response.writeHead(200, {"Content-Type": 'text/plain'});
response.write("hello world");
response.end();
}).listen(8888);
Any idea why I don have rights to operate this call?