环境
node版本8.9.0,全局安装了egg-init
操作步骤
我是按照文档走以下命令
$ mkdir egg-example && cd egg-example
$ npm init egg --type=simple
得到的是一个没有依赖和script的package.json。
{
"name": "egg",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": ""
}
请问正确的初始化姿势是?
直接用egg-init而不是npm init egg