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

learning express step(十)的更多相关文章

  1. learning express step(十四)

    learning express error handle code: const express = require('express'); const app = express(); const ...

  2. learning express step(十二)

    learning express view engine function const express = require('express'); const app = express(); app ...

  3. learning express step(十三)

    learning express error handle code: const express = require('express'); const app = express(); app.g ...

  4. learning express step(十一)

    learning express.Router() code: const express = require('express'); const app = express(); var route ...

  5. learning express step(五)

    learning  express  middleware var express = require('express'); var app = express(); var myLogger = ...

  6. learning express step(四)

    learning express route function const express = require('express'); const app = express(); app.get(' ...

  7. learning express step(九)

    router-level middleware works in the same way as application-level middleware, except it is bound to ...

  8. learning express step(八)

    To skip the rest of the middleware functions from a router middleware stack, call next('route') to p ...

  9. learning express step(七)

    Route handlers enable you to define multiple routes for a path. The example below defines two routes ...

随机推荐

  1. 1201: 位运算之拼整数(Java)

    WUSTOJ 1201: 位运算之拼整数 题目 原题链接 参考博客 XXXXXyun的博客--输入十六进制数 Description 输入无符号短整数k[hex.]和p[oct.],将k的高字节作为结 ...

  2. MySQL Sakila示例数据库

    Table of Contents 1 Preface and Legal Notices 2 Introduction 3 History 4 Installation 5 Structure    ...

  3. go 结构的方法2

    你可以对包中的 任意 类型定义任意方法,而不仅仅是针对结构体. 但是,不能对来自其他包的类型或基础类型定义方法. package main import (     "fmt"   ...

  4. 阿里云Centos7 搭建laravel

    最近在考虑学习laravel框架,唔 现在服务器搭建一下. laravel是依赖composer的,首先在linux服务器下先安装composer.运行composer需要 php 5.3以上版本, ...

  5. 怎样理解new命令的执行过程

    通过new命令生成一个实例对象经历了四个步骤: 1. 创建一个空对象, 作为将要返回的实例; 2. 将空对象的原型指向构造函数的prototype属性; 3. 将空对象赋值给构造函数的this; 4. ...

  6. Java RadixSort

    Java RadixSort /** * <html> * <body> * <P> Copyright 1994-2018 JasonInternational ...

  7. 一篇文章彻底搞懂异步,同步,setTimeout,Promise,async

    之前翻看别的大佬的博客看到了关于setTimeout,promise还有async执行顺序的文章.观看了几篇之后还是没有怎么看懂,于是自己开始分析代码,并整理了此文章,我相信通过此文章朋友们能对异步同 ...

  8. 开启HSTS让浏览器强制跳转HTTPS访问

    开启HSTS让浏览器强制跳转HTTPS访问 来源 https://www.cnblogs.com/luckcs/articles/6944535.html 在网站全站HTTPS后,如果用户手动敲入网站 ...

  9. 如何在含有json类型的字段上建立多列索引

    废话不多,直接上图 如 : 表结构如图           那么我想在这三个字段上建立一个唯一索引,目的是为了防止重复插入数据, 1.首先,说明一下 data中的json中,key为 tagID 和 ...

  10. 使用cakewalk将工程速度与音频速度对齐(扒带参考)

    题外话.cakewalk bandlab版免费 西贝柳斯打谱软件  fisrt版本 免费 (好像限制只能写4个声部) 1选中音频轨中的音频,按住alt+a调出audiosnap. 2点击    根据剪 ...