我试图用node.js运行我的第一个shttp-server,问题是我上了终端:
/sandbox/Node_js/server.js node server.js
-bash: /Users/yoniPacheko/WebstormProjects/sandbox/Node_js/server.js: Permission denied
这是简单的代码:
var http = require ("http");
http.createServer(function(request, response){
response.writeHead(200, {"Content-Type": 'text/plain'});
response.write("hello world");
response.end();
}).listen(8888);
我知道为什么我没有权利进行此次通话?