the default view engine will not be jade in future releases
来源:互联网 发布:淘宝店铺怎么发微博 编辑:程序博客网 时间:2024/06/04 18:42
在指定博客模版引擎的时候,想选择ejs,所以在cmd中输入"express -t ejs microblog",但是出现两个警告,分别是"warning: the default view engine will not be jade in future releases"和“warning: the default view engine will not be jade in future releases”,如图所示
然后我按照提示输入“cd microblog && npm install”依然出现两个警告“jade has been renames to pug,please install the lastest version of pug instead of jade”(根据推特上面发布的消息称jade在2015年因为版权问题被改名为pug.所以才会出现这种警告希望下载最新版本pug),另一个警告是“deprecated,use jstansformer”(反对,要使用 jstansformer),如下图所示
接下来就是我的解决方法了:
1.先使用express --help,发现现在express中现在已经没有‘-t’这个选择模版的选项了,取而代之的是“-e”,分别有“ets”,"pug","hbs"这三个模版可选。
.
2.我们输入"express -e microblog",虽然仍然会出现警告,但是无妨
3.之后就按照提示输入,我先输入“cd microblog && npm install”,回车,就能出现版本信息,我这安装的是"ejs@2.5.5"和“express@4.14.
1”,我在《node.js开发指南》看到"npm install"会检查目录下的“package.json”文件,并自动安装所有指定的依赖。如下图所示
4.然后我们运行一下 “SET DEBUG=microblog:* & npm start”,然后会发现在监听3000端口了
5.按下ctrl+c可以终止批操作处理
6.第5步其实是关闭了3000这个端口,所以你输入“http://localhost:3000”后没能看到欢迎界面,所以需要开启这个端口,直接输入“npm start”,端口就打开了,之后就能看到欢迎界面了
- the default view engine will not be jade in future releases
- angular2 will be kiiled by react in the future?
- [Warning] '--default-character-set' is deprecated and will be removed in a future release
- pip 警告!The default format will switch to columns in the future
- Windows10系统 DEPRECATION: The default format will switch to columns in the future解决!
- cached in the local repository, resolution will not be reattempted
- Deprecated: mysql_connect(): The mysqlextension is deprecated and will be removed in the future: use
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- mysql_connect(): The mysql extension is deprecated and will be removed in the future
- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: u
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- 1月18日下午(作业2)
- CSS学习笔记6:标准文档流
- 动态内存分配 malloc,free 函数分析
- 关于nodejs的npm命令无反应的
- 移除数组中的重复元素(javascript 数组去重)
- the default view engine will not be jade in future releases
- 简述jpg、gif、png-8、png-24的区别,分别使用场景
- 上传本地代码到github
- Tango Concepts Tango 概念
- 数学基础-容斥原理
- 算法训练 筛选号码
- 简单的AutoLock
- Leetcode日记(4)
- 学习笔记之-51单片机IO口详解