zoukankan      html  css  js  c++  java
  • 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:WebClientwebstormSpaceday6shuoshuo ode_modulesexpresslibview.js:78:30)
       at EventEmitter.render (d:WebClientwebstormSpaceday6shuoshuo ode_modulesexpresslibapplication.js:569:12)
       at ServerResponse.render (d:WebClientwebstormSpaceday6shuoshuo ode_modulesexpresslib esponse.js:961:7)
       at exports.showIndex (d:WebClientwebstormSpaceday6shuoshuo outes outer.js:7:9)
       at Layer.handle [as handle_request] (d:WebClientwebstormSpaceday6shuoshuo ode_modulesexpresslib outerlayer.js:95:5)
       at next (d:WebClientwebstormSpaceday6shuoshuo ode_modulesexpresslib outer oute.js:131:13)

    原因:没有安装ejs模块

    解决办法:

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

  • 相关阅读:
    行转列
    multipath 安装配置
    网卡绑定
    numa对MySQL多实例性能影响
    Fatal NI connect error 12170
    REVOKE DBA权限要小心
    Oracle 数据库整理表碎片
    listagg 函数
    10046 事件补充
    tkprof 解释
  • 原文地址:https://www.cnblogs.com/sharpest/p/8074542.html
Copyright © 2011-2022 走看看