learning express step(十)
when develop expree meet some errors, we show how to solve
Error: No default engine was specified and no extension was provided.
How to solve:
app.set('view engine','ejs');
Error: Cannot find module 'ejs'
How to solve:
C:\Users\admin\WebstormProjects\learning-express-step9>npm install jade --save
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\admin\WebstormProjects\learning-express-step9\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\admin\WebstormProjects\learning-express-step9\package.json'
npm WARN learning-express-step9 No description
npm WARN learning-express-step9 No repository field.
npm WARN learning-express-step9 No README data
npm WARN learning-express-step9 No license field.
+ jade@1.11.0
added 47 packages from 105 contributors and audited 340 packages in 10.743s
found 3 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details