1.ReferenceError: userModule is not defined
A:1》检查app.js文件中是否调用userModule所在的文件(const userModule=require("./routes/useModule2.js");
2》检查userModule所在的模块文件是否将模块公开出来(module.exports=userModule)。
Nodejs报错集
原文:http://www.cnblogs.com/potato-lee/p/6259536.html