Hello. I ask for help with the solution of the situation, because my knowledge is clearly not enough (just started learning nodejs) I decided to run a simple application on a virtual hosting under a phusion passenger. Code:

var express = require("express"); var app = express(); app.use(function (req,res,next) { res.send("Hello"); next(); }); app.listen(3000,function(){ }); 

What is the error:

 > Raw process output: node.js:486 > throw new Error('Implement me. Unknown stream file type!'); > ^ Error: Implement me. Unknown stream file type! > at createWritableStdioStream (node.js:486:15) > at process.stderr (node.js:517:16) > at Object.<anonymous> (/home/*путь-до-проекта*/node_modules/express/node_modules/debug/node.js:36:32) > at Module._compile (module.js:460:26) > at Object.Module._extensions..js (module.js:478:10) > at Module.load (module.js:355:32) > at Function.Module._load (module.js:310:12) > at Module.require (module.js:365:17) > at require (module.js:384:17) > at Object.<anonymous> (/home/*путь-до-проекта*/node_modules/express/node_modules/finalhandler/index.js:14:13) 

Googled a way to solve the problem, but found nothing.

Closed due to the fact that off-topic participants Dmitriy Simushev , cheops , Nick Volynkin 11 May '16 at 6:55 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - Dmitriy Simushev, cheops, Nick Volynkin
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • And what is the version of node.js? On my local installation node@0.12.6 everything works fine. - Dmitriy Simushev
  • @DmitriySimushev version of node-v0.12.13-linux-x64, version express - 4.13.4. Replaced version with 0.12.6 , got this: *** ERROR ***: Cannot execute /home/***/node-v0.12.6-linux-x64/bin/node: Permission denied (13) - Megazilla
  • Start with a normal installation and start node.js. The second error message saying something is wrong with the node itself, and not with your express application - Dmitriy Simushev

1 answer 1

I asked the hoster, it turned out that they are not allowed to create sockets and app.listen does not work. @DmitriySimushev, thanks!