Error display:
Error: _resolveFilename (module.js:325:15)
at function.module._load (module.js:276:25)
at require (module.js:353:17)
at require
at new View (d:\WebClient\webstormSpace\ day6shuomodules \express\lib\view.js:78:30)
at eventemet.render (d: \ WebClient \ webstormSpace \ day6shuoshuo \ node_modules \ express \ lib \ application js: 569:12)
the at ServerResponse. Render (d:\WebClient\webstormSpace\ day6shuomodules \lib\ respons.js :961:7)
at exports. ShowIndex (d:\WebClient\webstormSpace\ day6shuoroutes.js :7:9)
at Layer. Handle [as handle_request] (d:\WebClient\webstormSpace\ day6shuomodules \express\lib\router\ pace.js: 93:5)
at next (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\router\route.js:131:13)Reason: EjS module is not installed
Solutions:
CMD goes to the project directory and installs EJS: NPM install –save EJS
Error: _resolveFilename (module.js:325:15)
at function.module._load (module.js:276:25)
at require (module.js:353:17)
at require
at new View (d:\WebClient\webstormSpace\ day6shuomodules \express\lib\view.js:78:30)
at eventemet.render (d: \ WebClient \ webstormSpace \ day6shuoshuo \ node_modules \ express \ lib \ application js: 569:12)
the at ServerResponse. Render (d:\WebClient\webstormSpace\ day6shuomodules \lib\ respons.js :961:7)
at exports. ShowIndex (d:\WebClient\webstormSpace\ day6shuoroutes.js :7:9)
at Layer. Handle [as handle_request] (d:\WebClient\webstormSpace\ day6shuomodules \express\lib\router\ pace.js: 93:5)
at next (d:\WebClient\webstormSpace\day6shuoshuo\node_modules\express\lib\router\route.js:131:13)Reason: EjS module is not installed
Solutions:
CMD goes to the project directory and installs EJS: NPM install –save EJS
Read More:
- How to solve the problem of Cannot find module’npmlog’ when installing nodejs under Linux
- After installing nodejs, run NPM on the command line and report error: cannot find module ‘internal / util / types’
- Error reported by nodejs server of CentOS system: solution to cannot find module ‘jQuery’
- NPM can’t find D: //nodejs/node all of The solution of sudden_modules/NPM/bin/npm-cli.js
- Module build failed: error: cannot find module ‘node sass’ error
- Node.js Cannot find module ‘mysql’ ‘express’
- NPM- Cannot find module ‘xxxxx’
- Error: cannot find module HTTP errors
- Error: Cannot find module ‘process-nextick-args’
- Error reported after moving or copying Vue items: cannot find module ‘xxx‘
- Cannot find module ‘body-parser’
- Error: cannot find module ‘mongoose’
- Error: Cannot find module ‘express’
- Error: Cannot find module’webpack/bin/config-yargs’ solution
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- node.js Cannot find module “XXX” solution
- [Solved] Error: Cannot find module ‘webpack/lib/RequestShortener’
- Cannot find module ‘lodash’
- Gulp Error: Cannot find module ‘jshint/src/cli’;
- Error: Cannot find module ‘webpack/schemas/WebpackOptions.json’