Answer the question
In order to leave comments, you need to log in
Why is Error: listen: EPERM 3000 thrown when running Nodejs in production?
I created a project on Node.js, (koa) uploaded it to the server on the run.
In app.js, these are the server listening lines
var port = 3000
app
.use(authRoutes_1.default.routes())
.use(keysRoutes_1.default.routes())
.use(exchangesRoutes_1.default.routes())
.use(wishlistRoutes_1.default.routes())
.listen(port, function () { console.log('Listening on port ' + port); });
var http = require('http');
var server = http.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World!');
});
server.listen(3000);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question