转自:https://blog.csdn.net/u010142437/article/details/79012605

错误显示:

Error: Cannot find module 'ejs'
   at Function.Module._resolveFilename (module.js:325:15)
   at Function.Module._load (module.js:276:25)
   at Module.require (module.js:353:17)
   at require (internal/module.js:12:17)
   at new View (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\view.js:78:30)
   at EventEmitter.render (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\application.js:569:12)
   at ServerResponse.render (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\response.js:961:7)
   at exports.showIndex (d:\WebClient\webstormSpace\day6shuoshuo\routes\router.js:7:9)
   at Layer.handle [as handle_request] (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\router\layer.js:95:5)
   at next (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\router\route.js:131:13)

原因:没有安装ejs模块

解决办法:

cmd进入到项目目录,安装ejs:npm install --save ejs

最新文章

  1. [Linux编程] module_param()函数学习笔记
  2. java.lang.OutOfMemoryError: Java heap space解决方法
  3. 一种构造WEB服务器端recv和send接口阻塞现象的方法
  4. [改善Java代码]equals应该考虑null值的情景
  5. <未测>源码升级安装glibc和rpm升级glibc
  6. windows下sqlite3静态库和动态库的编译
  7. 很久之前写的Ajax库
  8. Find the Celebrity 解答
  9. 表格(table) 插件:支持当前行增行、删除。使用事件委托
  10. 51Nod--1085背包问题
  11. word模板导出的几种方式:第三种:标签替换(DocX组件读取与写入Word)
  12. 微信公众号openid处理的一些笔记
  13. Python基础01
  14. LeetCode刷题 fIRST MISSING POSITIVE
  15. 自学Zabbix12.5 Zabbix命令-zabbix_proxy
  16. 目标检测--SSD: Single Shot MultiBox Detector(2015)
  17. Spring(十九):Spring AOP(三):切面的优先级、重复使用切入点表达式
  18. Git 提交更改
  19. 03.JavaScript简单介绍
  20. 什么是C++虚函数、虚函数的作用和使用方法

热门文章

  1. linux 下 .sh 文件语法
  2. [笔记-统计学习方法]感知机模型(perceptron) 原理与实现
  3. 使用U盘作为启动盘安装ubuntu系统
  4. iostat---监视磁盘CPU相关信息
  5. 今日SGU 5.27
  6. 一个HelloWorld版的MySQL数据库管理器的设计与实现(源码)
  7. CSU 1378 Shipura 简单模拟
  8. ArcGIS api for javascript——合并切片和动态图层
  9. storm 消息确认机制及可靠性
  10. android 视频开发2分之2(仿美拍,糗百)