You are trying to access express before initializing it.(您正在尝试初始化Express。)
Here is your code:(这是您的代码:)
var router = express.Router();
var express = require('express');
Initialize express first then use Router
.(首先初始化Express,然后使用Router
。) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…