Answer the question
In order to leave comments, you need to log in
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
The code is working, try reinstalling the express module in the project folder
> 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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question