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