E
E
Evolove2016-03-02 15:24:20
Node.js
Evolove, 2016-03-02 15:24:20

Error connecting express?

Installed via npm Express.js server writes
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. (/home/w/node_modules/express/node_modules/debug/node.js:37: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. (/home/w/node_modules/express/node_modules/finalhandler/index.js:14:13)
app.js

var express = require('express');
var app = express();

app.get('/', function (req, res) {
  res.send('Hello World');
});
 
app.listen(3000);

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Anton Ulanov, 2016-03-02
@antonsr98

The code is working, try reinstalling the express module in the project folder

P
pomeo, 2016-03-02
@pomeo

Change the port to 7777 for example

I
Ilya Erokhin, 2016-03-02
@AirWorker

> v - node-v0.12.7-linux-x64
Try installing the latest node version locally using nvm (see comments on this answer) and test with it.

H
Homsa Toft, 2016-03-02
@kostein

Caught the same error in Passenger+NGINX+Nodejs environment =/

A
Alexander, 2016-03-05
@w4r_dr1v3r

Comrades, try npm install -g express-generator --saveit if you are on node version 5.x and higher; orsudo npm install -g express-generator --save

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question