Createserver is not a function.

  node.js, question

Createserver is not a function when noderexpress was created.

Express installed

//Test. javascript,
 var express=require('express');
 var app=express.createServer();
 res.send('welcome to Node Twitter');


Why? This is the code I typed in my book, but the tutorial I learned from Baidu is completely different.

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 documents
Or a Chinese translation