Createserver is not a function.

  node.js, question

Createserver is not a function when noderexpress was created.

Express installed
clipboard.png

//Test. javascript,
 var express=require('express');
 var app=express.createServer();
 app.get('/',function(req,res){
 res.send('welcome to Node Twitter');
 })
 app.listen(8000);

clipboard.png

Why? This is the code I typed in my book, but the tutorial I learned from Baidu is completely different.http://blog.csdn.net/jonahzheng/article/details/33758645

Who can tell me how to get what’s in the book, and what’s on Baidu is What Do You Mean?

You should be looking at a very old 2.0 document.
Your first screenshot shows that inside installed 4.14.0
So look at the official documentshttp://expressjs.com/
Or a Chinese translationhttp://www.expressjs.com.cn/