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.
node@0.12.6everything works fine. - Dmitriy Simushev*** ERROR ***: Cannot execute /home/***/node-v0.12.6-linux-x64/bin/node: Permission denied (13)- Megazilla